Are you really using temp_name when you want tmp_name?
On Wed, March 5, 2008 4:37 am, Pieter du Toit wrote:
Just to add, if i try to echo the $_FILES['txtPhoto']['temp_name'] it
tells
me that temp_name is also an array, but when i echo
$_FILES['txtPhoto']['name'] it gives me the correct name.
: Variable post as array
Just to add, if i try to echo the $_FILES['txtPhoto']['temp_name'] it tells
me that temp_name is also an array, but when i echo
$_FILES['txtPhoto']['name'] it gives me the correct name. Also with a
vardump i can see that temp name is [tmp_name]= string(14)
/tmp/phplR1WSl
in the variable?
Its difficult to see whats going on as you posted your whole file.
-Original Message-
From: Pieter du Toit [mailto:[EMAIL PROTECTED]
Sent: 05 March 2008 12:38
To: php-general@lists.php.net
Subject: [PHP] Re: Variable post as array
Just to add, if i try to echo
in the variable?
Its difficult to see whats going on as you posted your whole file.
-Original Message-
From: Pieter du Toit [mailto:[EMAIL PROTECTED]
Sent: 05 March 2008 12:38
To: php-general@lists.php.net
Subject: [PHP] Re: Variable post as array
Just to add, if i try to echo
What is on line 49?
What variable are you passing as the parameter?
-Original Message-
From: Pieter du Toit [mailto:[EMAIL PROTECTED]
Sent: 05 March 2008 13:36
To: php-general@lists.php.net
Subject: [PHP] Re: Variable post as array
This is my problem
Warning: fopen() expects
-
From: Pieter du Toit [mailto:[EMAIL PROTECTED]
Sent: 05 March 2008 13:36
To: php-general@lists.php.net
Subject: [PHP] Re: Variable post as array
This is my problem
Warning: fopen() expects parameter 1 to be string, array given in
/usr/www/users/zululr/marketplace/myzululand
]
Sent: 05 March 2008 13:43
To: php-general@lists.php.net
Subject: Re: [PHP] Re: Variable post as array
This is line 49
$txtPhotoData = addslashes(fread(fopen($txtPhoto, r),
filesize($txtPhoto)));
the $txtPhoto is the parameter
Angelo Zanetti [EMAIL PROTECTED] wrote in message
news:[EMAIL
passing as the parameter?
-Original Message-
From: Pieter du Toit [mailto:[EMAIL PROTECTED]
Sent: 05 March 2008 13:36
To: php-general@lists.php.net
Subject: [PHP] Re: Variable post as array
This is my problem
Warning: fopen() expects parameter 1 to be string, array given in
/usr/www/users
Pieter du Toit wrote:
Just to add, if i try to echo the $_FILES['txtPhoto']['temp_name'] it tells
The above reference is wrong. 'temp_name' should be 'tmp_name'
me that temp_name is also an array, but when i echo
$_FILES['txtPhoto']['name'] it gives me the correct name. Also with a
vardump
[mailto:[EMAIL PROTECTED]
Sent: 05 March 2008 13:36
To: php-general@lists.php.net
Subject: [PHP] Re: Variable post as array
This is my problem
Warning: fopen() expects parameter 1 to be string, array given in
/usr/www/users/zululr/marketplace/myzululand/specials_proc.php on line 49
10 matches
Mail list logo