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

 

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация