Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

[PHP3] FW: [PHP3] using PHP3 to upload files, anyone? From: almir kazazic (a9409754 <email protected>)
Date: 08/28/99

-----Original Message-----
From: almir kazazic [mailto:a9409754 <email protected>]
Sent: Samstag, 28. August 1999 13:31
To: 'Derek Sivers'
Subject: RE: [PHP3] using PHP3 to upload files, anyone?

usualy u get filename=none if file is bigger than max_file_size try it here
and u will see all things that php3 knows about your file
http://212.17.72.235/upload5.php3

-----Original Message-----
From: Derek Sivers [mailto:list <email protected>]
Sent: Samstag, 28. August 1999 06:27
To: php3 <email protected>
Subject: [PHP3] using PHP3 to upload files, anyone?

Anyone used PHP3 for letting people upload files to your server?
Anyone had any problems with it?
Anyone have a clue why I might be getting this error returned to the
browser AFTER the whole file finishes uploading?

---
Warning: Unable to open 'none' for reading: No such file or directory in
/home/sites/home/web/test/put2.php3 on line 10
---
(Note: that is the correct path to the directory.  Why would it be trying
to open 'none' ??)

Here's the submission/upload form:

<FORM ENCTYPE="multipart/form-data" ACTION="put2.php3" METHOD=POST> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000"> Choose the file: <INPUT NAME="userfile" TYPE="file"><br> Then... <INPUT TYPE="submit" VALUE="Send File"> </FORM>

Then, on the put2.php3 page, the command...

<?php copy($userfile,"/home/sites/home/web/$userfile_name"); ?>"); ?>

... is the one giving the error. (And the file doesn't upload.) The following stuff on the page is fine.

Any ideas anyone?

THANKS!

Derek Sivers list <email protected>

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>