On Wednesday 13 February 2002 09:57 pm, you wrote: > On Wed, 2002-02-13 at 18:53, Reuben D Budiardja wrote: > > print_r $HTTP_POST_FILE gives me: > > > > Array ( [userfile] => Array ( [name] => timecard.png [type] => image/png > > [tmp_name] => /home/web/phpZKBTak [size] => 38656 ) ) > > > > But I still can't find the file at /home/web/. > > > > Thanks for your help. > > Reuben D. Budiardja > > You need to move the temp file to whereever its final resting place > is. i.e. have you done a move_upload_file() on it yet?
Yes, I have. I follow the example exactly from http://www.php.net/manual/en/features.file-upload.php. Here is my scripts: uploadPic.php: <HTML> <form enctype="multipart/form-data" action="uploadPic2.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="100000"> Send this file: <input name="userfile" type="file"> <input type="submit" value="Send File"> </form> </HTML> uploadPic2.php: <? print_r($HTTP_POST_FILES); move_uploaded_file($HTTP_POST_FILES['userfile'], "/home/web/final"); ?> Thanks a lot for helping me. Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php