|
Posted by bill on 11/26/06 15:43
Jørn Dahl-Stamnes wrote:
> bill wrote:
>
>> petersprc wrote:
>>> Try error_reporting(E_ALL) and ini_set('display_errors', true) if
>>> necessary. May print some warnings. If that doesn't help, maybe check
>>> the owner of the directory/file, see if you have enough space, or if
>>> you have a quota on the destination directory...
>> Ok, I have it tracked down and it was the usual: "programmer error"
>>
>>
>> if ($_FILES['test-img'] = "") {
>> die ("no input file");
>> }
>>
>> while testing to see if the $_FILES array exists, I was setting
>> it to null.
>
> That is why you always should write an if-statement like this:
>
> if (constante == $variable)
>
> because if you write 'if (constante = $variable)' you get an compilation
> error.
>
Excellent suggestion !
THanks.
bill
Navigation:
[Reply to this message]
|