Re: Rép. : [PHP-MIGRATION] File uploads i n php 3
[email protected] (Michael Chiu) Tue, 12 Dec 2000 09:55:17 -0600 (CST)
| Newsgroups | php.general,php.migration |
|---|---|
| Message-ID | <[email protected]> |
Unfortunately, that didn't make a difference for me. Can you think of anything else that you might have done at that time to get it to work? Mike Chiu [email protected] http://yoyoman.insync.net "No one who believes in him will be put to shame." (Romans 10:11) On Tue, 12 Dec 2000, Benoit Noss wrote: > 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 - ([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="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 > > [email protected] 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: [email protected] > For additional commands, e-mail: [email protected] > To contact the list administrators, e-mail: [email protected] > >