File uploads in php 3

From: Michael Chiu Date: Mon, 11 Dec 2000 22:32:27 +0000
Subject: File uploads in php 3
Groups: php.general php.migration 
Request: Send a blank email to php-migration+get-100@lists.php.net to get a copy of this message
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)


Thread (1 message)

« previous php.migration (#100) next »