Re: What is wrong here?

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

 



On 25 Apr 2012, at 09:45, marco@xxxxxxxxxx wrote:

> "Karl-Arne Gjersøyen" <karlarneg@xxxxxxxxx> hat am 25. April 2012 um 06:45
> geschrieben:
> 
>> Hello again.
>> I can't figure out what is wrong here.
>> 
>> move_uploaded_file() get error message from die() and can't copy/move
>> temp_file into directory bilder
>> 
>> I have try to chmod 0777 bilder/ but it did not help.
>> Also I have try to chown www-data.www-data bilder/ since Ubuntu Server
>> run apache as www-data user...
>> 
>> Here is my souce code
>> ------------------------------------------------------
>> // Temfil lagres midlertidig på serveren som
>>        // spesifisert i php.ini
>>        $tmp_fil = $_FILES['filbane']['temp_name'];
> 
> tmp_name not temp_name

This indicates that you're developing with notices switched off. This is a very bad idea because it hides simple errors like this. See the manual for details: http://php.net/error_reporting.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/

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