Re: Trouble With FTP_PUT Please Help!

From: Date: Wed, 28 May 2003 17:03:25 +0000
Subject: Re: Trouble With FTP_PUT Please Help!
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-149288@lists.php.net to get a copy of this message
Call me an optimist but if you don't get any error's, that usually means it worked. You do know that the uploaded file is erased when the page ends right? You have to use a call to move_uploaded_file to actually put it somewhere on the file system. On Wed, 2003-05-28 at 12:53, Adnan wrote: > Adam Voigt wrote: > > > Hmm, what's the exact error message you get? > > > > > > On Wed, 2003-05-28 at 12:43, Adnan wrote: > >> Adam Voigt wrote: > >> > >> > If your running under linux/unix, do: > >> > > >> > chown webuser:webuser /tmp/php > >> > > >> > Supplement /tmp/php with whatever upload path you have > >> > set in your php.ini, and webuser with whatever user your > >> > webserver runs as. > >> > >> just did that, and did a > >> > >> print_r($_FILES); > >> and this is what i got > >> Array ( [imagefile] => Array ( [name] => photo.jpg [type] => image/jpeg > >> [tmp_name] => /tmp/php/ phpBEzrql [error] => 0 [size] => 35532 ) ) > >> > >> thanks for your help :) > >> > >> adnan > > when i browse for the image then press submit i dont get any error or > anything, if i dont put print_r($_FILES); i dont get anything -- Adam Voigt (adam@cryptocomm.com) Linux/Unix Network Administrator The Cryptocomm Group

« previous php.general (#149288) next »