Re: What is wrong here?
| From: | Stuart Dallas | Date: | Wed, 25 Apr 2012 08:48:02 +0000 |
| Subject: | Re: What is wrong here? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317674@lists.php.net to get a copy of this message | ||
On 25 Apr 2012, at 09:45, marco@behnke.biz wrote:
> "Karl-Arne Gjersøyen" <karlarneg@gmail.com> 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/