$HTTP_POST_FILES always produces empty value.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear my friends....

I don't understand why $HTTP_POST_FILES always produces empty value.

This is my code
===
//cgi/cgiprodukcatalogadmin.php
<?php
$berkasgambarproduk=$HTTP_POST_FILES['gambarproduk']['name'];
echo "gambarproduk: $gambarproduk<br>";
echo "berkasgambarproduk: $berkasgambarproduk<br>";
?>
===
This is the output in my Opera internet browser:
===
gambarproduk: /tmp/phppd6DZy
berkasgambarproduk:
===
this is my php.ini:
===
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
upload_tmp_dir = /srv/www/htdocs/tmpphp

; Maximum allowed size for uploaded files.
upload_max_filesize = 100M
===

Please tell me, "where is my mistake?".

Thank you very much in advance.
-- 
Patrik Hasibuan <patrikh@xxxxxxxxxxxxxxxxxxxxx>
Junior Programmer

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux