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
psychotomus
Forum Contributor
Posts: 487 Joined: Fri Jul 11, 2003 1:59 am
Post
by psychotomus » Sun May 14, 2006 10:06 pm
is there a way to wait till the move_uploaded_file function is completed befor it goes to the next line of code?
BadgerC82
Forum Commoner
Posts: 25 Joined: Tue Feb 07, 2006 6:53 am
Post
by BadgerC82 » Mon May 15, 2006 7:58 am
The answer to you question is you already are I believe.
The move_uploaded_file function returns a result after the success of failure of a stream i.e. The completion of the move.
if(move_uploaded_file(....))
{
return "YEYYYY!";
}
else
{
return "Booooo!!!";
}
Is this what you meant?