Page 1 of 1

File Uploading Methods

Posted: Mon May 29, 2006 2:15 am
by itsmani1
following is one method for uploading files, which is connection less method, there is no assurance that file will get uploaded or not? is there any method which is connection oriented method in php?

Code: Select all

$uploadfile = $uploaddir . basename($_FILES['file']['name']);
		if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) 
		{
                           echo "File Uploaded .....";
		}
                else
                {
                          echo "Uploading Failded.";
                }

Thanks

Posted: Mon May 29, 2006 2:23 am
by jmut
I don't get what you mean. This is the right way to upload files.
What do you see wrong with it?

Posted: Mon May 29, 2006 4:40 am
by twigletmac
You can also FTP using PHP - is this the kind of thing you're looking for?

Posted: Mon May 29, 2006 9:04 am
by itsmani1
yes, how to ftp using php?

Posted: Mon May 29, 2006 10:19 am
by Ambush Commander
Follow the link. :roll: