problem w/upload in PHP 3.0.17

From: Date: Sun, 15 Oct 2000 05:16:36 +0000
Subject: problem w/upload in PHP 3.0.17
Groups: php.general 
Request: Send a blank email to php-general+get-20214@lists.php.net to get a copy of this message
I have a small script to upload image files that works fine with 3.0.12 and 3.0.16 on test boxes, but craps out on a production server which we just upgraded to 3.0.17 -- no error messages given, just a seg fault and no joy. The initial page looks like this: <----------SNIP------------> <form action=upload2.php method=post enctype="multipart/form-data"> <input type=hidden name=MAX_FILE_SIZE value=358400> <P>Choose the image you wish to upload: <BR><BR> <input type=file name="photo"><BR> <input type=submit value="Upload File"><BR> </form> <----------SNIP------------> and it posts to this page: <----------SNIP------------> <? error_reporting(15); copy ($photo, "/tmp/$filename.jpg"); echo ("<P><B>File successfully uploaded!</b>"); ?> <----------SNIP------------> Any ideas? Others having this problem? It does the same thing in 3.0.17 using the new is_uploaded_file and move_uploaded_file functions. Looking at an strace of the server process, it looks like it has the segmentation fault just before it would start writing out the temporary file. -- Glenda R. Snodgrass Before you begin, consider ... The Net Effect http://www.theneteffect.com (334) 433-0196

« previous php.general (#20214) next »