Date: 08/05/02
- Next message: Dan Kalowsky: "[PHP-DOC] cvs: phpdoc /en/reference/imap/functions imap-popen.xml"
- Previous message: Sander Roobol: "[PHP-DOC] cvs: phpdoc / configure.in"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 16426
Comment by: jaguinaga <email protected>
Reported By: dom <email protected>
Status: Analyzed
Bug Type: Documentation problem
Operating System: Sun raq4, RedHat
PHP Version: 4.1.2
Assigned To: hholzgra
New Comment:
For somethings version of RedHat Linux, you need modify the php.ini
(/etc/php.ini), search a line:
file_uploads=Off
modify to:
file_uploads=On
And everything is Ok.
See you.
Juan Alberto Aguinaga Rodriguez.
Previous Comments:
------------------------------------------------------------------------
[2002-05-15 21:25:41] sniper <email protected>
And this is still docu prob.
------------------------------------------------------------------------
[2002-04-04 07:13:42] sniper <email protected>
In PHP 4.2.0 (and above) there will be also an 'error'
entry in the array which has some more info:
/* Errors */
#define UPLOAD_ERROR_A 1 /* Uploaded file exceeded
upload_max_filesize */
#define UPLOAD_ERROR_B 2 /* Uploaded file exceeded MAX_FILE_SIZE */
#define UPLOAD_ERROR_C 3 /* Only partiallly uploaded */
#define UPLOAD_ERROR_D 4 /* No file uploaded */
#define UPLOAD_ERROR_E 5 /* Uploaded file size 0 bytes */
It's 0 if the upload was succesful.
------------------------------------------------------------------------
[2002-04-04 06:53:32] dom <email protected>
I have had a file upload script working in 4.0.5, but I just upgraded
to
4.1.2 and have been getting problems with the
$HTTP_POST_FILES['userfile']['tmp_name'] variable.
It seems that it always returns 'n' as the temporary filename. I have
tried replacing $HTTP_POST_FILES with the new $_FILES variable, but I
still get the same problem.
It would be great if you can help!!
Thanks guys
------------------------------------------------------------------------
[2002-04-04 06:12:04] dom <email protected>
Hmm the thing is I can get the information from all of the other parts
of the array, the original filename and file type all come out correct,
but the temp name is still 'n'...
------------------------------------------------------------------------
[2002-04-04 06:05:04] hholzgra <email protected>
$HTTP_POST_FILES['userfile'] is "none" when
an upload fails (eg. due to size restrictions)
so you should check for
is_array($HTTP_POST_FILES['userfile'])
first
changed to "Documentation problem"
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16426
-- Edit this bug report at http://bugs.php.net/?id=16426&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Dan Kalowsky: "[PHP-DOC] cvs: phpdoc /en/reference/imap/functions imap-popen.xml"
- Previous message: Sander Roobol: "[PHP-DOC] cvs: phpdoc / configure.in"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

