How to make more than one php file running together
How to make more than one php file running together.
example :
when i run a.php then run b.php on same browser but different tab. when a.php run first then b.php must wait until a.php finish then b.php can running.
I want to know how a.php and b.php can run together in localhost.
Re: How to make more than one php file running together
what is it that your trying to accomplish?
If you want to pop b.php open in a new tab/window you can use javascript to do that.
Re: How to make more than one php file running together
not really related to this oke's question, but .... Multi-Threading in PHP (like we had in asp.net for instance)....possible?
Re: How to make more than one php file running together
Quote:
Originally Posted by StrangerInBeijing
not really related to this oke's question, but .... Multi-Threading in PHP (like we had in asp.net for instance)....possible?
i think this is what he wants to do. a quick google search shows that php does not support multithreading whatsoever, but there seems to be some "fake" ways of doing it.
http://www.google.com/search?q=multi...ng+php&spell=1
Re: How to make more than one php file running together
looks complicated.
I'd rather figure something out with Ajax. Actually I do that all the time.
Re: How to make more than one php file running together
If you want multi-threading then use JSP. There are no clean ways to do it in PHP and unless you really know what you are doing, trying could introduce serious security flaws into your application.
Re: How to make more than one php file running together
Quote:
Originally Posted by ade_ari_w0
when i run a.php then run b.php on same browser but different tab. when a.php run first then b.php must wait until a.php finish then b.php can running.
Impossible — page requests are totally independent.
As the others mentioned, if you explain exactly what it is that you need this for, we can suggest a better solution.