Page 1 of 1

move_uploaded_file

Posted: Sun May 14, 2006 10:06 pm
by psychotomus
is there a way to wait till the move_uploaded_file function is completed befor it goes to the next line of code?

Posted: Mon May 15, 2006 7:58 am
by BadgerC82
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?