Re: [PHP] $HTTP_POST_FILES always produces empty value.
- From: patrikh@xxxxxxxxxxxxxxxxxxxxx (Patrik Hasibuan)
- Date: Tue, 31 Jul 2007 13:09:26 +0700
Thank you very much for your help, Richard.
It's solved.
====
On Tue, 31 Jul 2007 00:47:51 -0500 (CDT)
"Richard Lynch" <ceo@xxxxxxxxx> wrote:
Try this:
echo "_FILES:<br />\n";
var_dump($_FILES);
echo "<br />\nHTTP_POST_FILES<br />\n";
var_dump($HTTP_POST_FILES);
On Mon, July 30, 2007 7:00 am, Patrik Hasibuan wrote:
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
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
Patrik Hasibuan <patrikh@xxxxxxxxxxxxxxxxxxxxx>
Junior Programmer
.
- References:
- $HTTP_POST_FILES always produces empty value.
- From: Patrik Hasibuan
- $HTTP_POST_FILES always produces empty value.
- Prev by Date: Re: [PHP] PHP Rating system
- Next by Date: search script help!
- Previous by thread: Re: [PHP] $HTTP_POST_FILES always produces empty value.
- Next by thread: Reading registry values
- Index(es):
Relevant Pages
|