move_uploaded_file

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
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

move_uploaded_file

Post 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?
BadgerC82
Forum Commoner
Posts: 25
Joined: Tue Feb 07, 2006 6:53 am

Post 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?
Post Reply