Re: [PHP] Re: Variable post as array

2008-03-07 Thread Richard Lynch
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.

RE: [PHP] Re: Variable post as array

2008-03-05 Thread Angelo Zanetti
: 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

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
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

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
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

RE: [PHP] Re: Variable post as array

2008-03-05 Thread Angelo Zanetti
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

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Pieter du Toit
- 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

RE: [PHP] Re: Variable post as array

2008-03-05 Thread Angelo Zanetti
] 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

Re: [PHP] Re: Variable post as array

2008-03-05 Thread M. Sokolewicz
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

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Jim Lucas
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

Re: [PHP] Re: Variable post as array

2008-03-05 Thread Zoltán Németh
[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