RE: Re: Variable post as array

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

 



Well check what the value is. I think you must do more testing yourself
instead of just posting here because then you will not learn and also if you
trouble shoot it yourself it will allow you to fix errors in the future.



-----Original Message-----
From: Pieter du Toit [mailto:pieter@xxxxxxxxxxxxxxxxx] 
Sent: 05 March 2008 13:43
To: php-general@xxxxxxxxxxxxx
Subject: Re:  Re: Variable post as array

This is line 49

$txtPhotoData = addslashes(fread(fopen($txtPhoto, "r"), 
filesize($txtPhoto)));

the $txtPhoto is the parameter

""Angelo Zanetti"" <angelo@xxxxxxxxxxxxxxx> wrote in message 
news:20080305113934.591FBD019@xxxxxxxxxxxxxxxxxxxxxxxx
> What is on line 49?
>
> What variable are you passing as the parameter?
>
>
>
> -----Original Message-----
> From: Pieter du Toit [mailto:pieter@xxxxxxxxxxxxxxxxx]
> Sent: 05 March 2008 13:36
> To: php-general@xxxxxxxxxxxxx
> Subject:  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
>
> "Colin Guthrie" <gmane@xxxxxxxxxxxxxx> wrote in message
> news:fqlupu$mm7$1@xxxxxxxxxxxxxxxx
>> Pieter du Toit wrote:
>>> Hi
>>>
>>> I have this weird problem, when i select a file to upload, the variable
>>> arrives as an array at the action php file, this is the code, and the
>>> variable name is txtPhoto
>>
>> I'd give a shorter example. People don't want to read through all your
>> code..
>>
>> Also you shoudl post some sort of indication of what you are trying to
>> do to get the results you describe... just saying "the variable arrives
>> as an array" and we don't really know how you are accessing "the
>> variable".
>>
>> A short example and expected/actual behaviour listing is good :)
>>
>> Col
>>
>
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> 



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



-- 
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