Hi, I need some assistance again...
I have a simple upload form from manual that goes like this:
<form enctype="multip art/form-data" action="list.ph p" method="POST">
<input type="hidden" name="MAX_FILE_ SIZE" value="100000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
list.php then searches "/upload" and lists all the files found in there.
Now, what I need is to tell it where to upload a file :)
By default, tutorial says, files are in /var/www/tmp.
My web server doesn't even have this directory.
I tried doing some search in various tmp folders but found none of the
uploaded files. I expected it to see in the directory from which I
executed the form.. but... umm... no. Nothing there as well.
Just whem I was about to to phpinfo(); to search for the patch for
storing temp uploaded files server crashed... damn shared hosting.
So I have to wait for admins to bring it back online...
By the way, I can't try 'move_uploaded_ file($_FILE['something'...
because the PHP version installed is not > or == 4.1.0 :((
I think it's 4.0.6 but I don't think it's that important.
Suggested solution was "$HTTP_UPLOADED _FILE" if I recall right...
.... but that failed to work for me as well :((
Anyone has any ideas?
Thanks in advance,
Six
P.S. I was just trying to make a simple file upload script. Nothing
fancy. Just to allow several people to send something to me via web...
I have a simple upload form from manual that goes like this:
<form enctype="multip art/form-data" action="list.ph p" method="POST">
<input type="hidden" name="MAX_FILE_ SIZE" value="100000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
list.php then searches "/upload" and lists all the files found in there.
Now, what I need is to tell it where to upload a file :)
By default, tutorial says, files are in /var/www/tmp.
My web server doesn't even have this directory.
I tried doing some search in various tmp folders but found none of the
uploaded files. I expected it to see in the directory from which I
executed the form.. but... umm... no. Nothing there as well.
Just whem I was about to to phpinfo(); to search for the patch for
storing temp uploaded files server crashed... damn shared hosting.
So I have to wait for admins to bring it back online...
By the way, I can't try 'move_uploaded_ file($_FILE['something'...
because the PHP version installed is not > or == 4.1.0 :((
I think it's 4.0.6 but I don't think it's that important.
Suggested solution was "$HTTP_UPLOADED _FILE" if I recall right...
.... but that failed to work for me as well :((
Anyone has any ideas?
Thanks in advance,
Six
P.S. I was just trying to make a simple file upload script. Nothing
fancy. Just to allow several people to send something to me via web...
Comment