You are here: Re: PHP 4.3.11: move_uploaded_file « PHP Programming Language « IT news, forums, messages
Re: PHP 4.3.11: move_uploaded_file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация