[Help] PHP Functions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Pwntzyou
Forum Newbie
Posts: 1
Joined: Sun Oct 18, 2009 9:43 pm

[Help] PHP Functions

Post by Pwntzyou »

Recently, I have been writing a XML Socket server in PHP...

My problem is this...

In PHP, when you call a custom function it seems to stop whatever is currently happening.

ie:

Code: Select all

 
do_this($test);
print("Hello!");
 
It will not print hello if you call it after the function. In this example I could simply move hello above the function call, but in my script it would not be that simple.

tl;dr: Is there a way I can call a function, and not have it stop doing whatever it is currently doing.

EDIT: Inside the function there IS a while loop that will go on until something happens to it.

Also, it seems I need a way to multithread these processes... or start new instances of them... or something... halp!
Last edited by Pwntzyou on Sun Oct 18, 2009 11:07 pm, edited 2 times in total.
guosheng1987
Forum Newbie
Posts: 24
Joined: Thu Oct 15, 2009 3:03 am

Re: [Help] PHP Functions

Post by guosheng1987 »

show details of the function..
is there any wrong with the function?
Post Reply