Reply to Re: PHP 4.3.11: move_uploaded_file

Your name:

Reply:


Posted by J�rn Dahl-Stamnes on 11/26/06 09:22

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.

--
Jørn Dahl-Stamnes
http://www.dahl-stamnes.net/dahls/

[Back to original 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

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