Rép. : [PHP-MIGRATION] File uploads i n php 3

From: Date: Tue, 12 Dec 2000 09:21:15 +0000
Subject: Rép. : [PHP-MIGRATION] File uploads i n php 3
Groups: php.general php.migration 
Request: Send a blank email to php-migration+get-103@lists.php.net to get a copy of this message
Hello, I got the same problem with PHP3.0.17 on Win32 (I think it's a bug). I solved this in placing <input type=file ....> as first parameter after the <form action .....> Hope it helps Benoit NOSS - (benoit.noss@iaurif.org) (Bureau 226) IAURIF, Service MSI, 15 rue Falguiere, 75740 PARIS Cedex 15 FRANCE Tel : (+33) 1 53 85 78 04 Fax : (+33) 1 53 85 76 36 >>> Michael Chiu <yoyoman@insync.net> 11/12/00 23h32 >>> I have been using php4 successfully for a little while now. However, I have been asked to restore an old defunct project that was written by someone else in php 3. The project was once installed on a virtual host back in Feb 1999 when php3 was the current version. The shared server is now running php4, and the server admins don't want to run any risks in running both modules. So, I am trying to reinstall the site on a development server that I can control. I am using the developer's tarred copy rather than the once live copy since that has been tampered with and is not the best version. I have gotten most things to work again by finding all the path names to be changed. However, one thing that I cannot get to work again are file uploads. In Netscape, it will tell me the page contains no data. I cannot even get a simple test script to work. I've appended the upload and results code below. Even trying to get it to tell me the value of $color is a problem. testup.php3 <html> <body> <FORM ENCTYPE="multipart/form-data" ACTION="testdown.php3" METHOD=POST> <input type="text" name="color" value="red" size="16"><br> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000"> Send this file: <INPUT NAME="userfile" TYPE="file"> <INPUT TYPE="submit" VALUE="Send File"> </FORM> </body> </html> testdown.php3 <html> <body> <? print "$color<br>\n"; ?> </body> </html> My configuration was : ./configure '--with-mysql=/usr/local/mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-track-vars' php3.ini file path is set to: /usr/local/lib Any clues would be greatly appreciated! Mike Chiu yoyoman@insync.net http://yoyoman.insync.net "No one who believes in him will be put to shame." (Romans 10:11) -- PHP Migration Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-migration-unsubscribe@lists.php.net For additional commands, e-mail: php-migration-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.migration (#103) next »