Rép. : [PHP-MIGRATION] File uploads i n php 3
[email protected] ("Benoit Noss") Tue, 12 Dec 2000 10:21:15 +0100
| Newsgroups | php.general,php.migration |
|---|---|
| Message-ID | <[email protected]> |
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=3Dfile ....> as first parameter after the <form action .....> Hope it helps Benoit NOSS - ([email protected]) (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 <[email protected]> 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=3D"multipart/form-data" ACTION=3D"testdown.php3" METHOD=3DPOS= T> <input type=3D"text" name=3D"color" value=3D"red" size=3D"16"><br> <INPUT TYPE=3D"hidden" name=3D"MAX_FILE_SIZE" value=3D"1000000"> Send this file: <INPUT NAME=3D"userfile" TYPE=3D"file"> <INPUT TYPE=3D"submit" VALUE=3D"Send File"> </FORM> </body> </html> testdown.php3 <html> <body> <? print "$color<br>\n"; ?> </body> </html> My configuration was : ./configure '--with-mysql=3D/usr/local/mysql' '--with-apxs=3D/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 [email protected] http://yoyoman.insync.net=20 "No one who believes in him will be put to shame." (Romans 10:11) --=20 PHP Migration Mailing List (http://www.php.net/) To unsubscribe, e-mail: [email protected]=20 For additional commands, e-mail: [email protected]=20 To contact the list administrators, e-mail: [email protected]=20=