<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[PHP] What is wrong here?</title>
        <description> 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'];
	// lagre filnavnet..
	$filnavn = &amp;quot;bilder/&amp;quot; . $_FILES['filbane']['name'];
	// ..og legg fila i katalogen bilder
	move_uploaded_file($tmp_fil, $filnavn) or die(&amp;quot;Feilmelding: Kunne
ikke flytte $filnavn&amp;quot;);
	

Karl

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php</description>
        <link>http://www.serverphorums.com/read.php?8,485538,485538#msg-485538</link>
        <lastBuildDate>Sun, 19 May 2013 20:33:32 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?8,485538,485619#msg-485619</guid>
            <title>Re: [PHP] What is wrong here?</title>
            <link>http://www.serverphorums.com/read.php?8,485538,485619#msg-485619</link>
            <description><![CDATA[ On 25 Apr 2012, at 09:45, <a href="mailto:&#109;&#97;&#114;&#99;&#111;&#64;&#98;&#101;&#104;&#110;&#107;&#101;&#46;&#98;&#105;&#122;">&#109;&#97;&#114;&#99;&#111;&#64;&#98;&#101;&#104;&#110;&#107;&#101;&#46;&#98;&#105;&#122;</a> wrote:<br />
<br />
&gt; &quot;Karl-Arne Gjersøyen&quot; &lt;karlarneg@gmail.com&gt; hat am 25. April 2012 um 06:45<br />
&gt; geschrieben:<br />
&gt; <br />
&gt;&gt; Hello again.<br />
&gt;&gt; I can't figure out what is wrong here.<br />
&gt;&gt; <br />
&gt;&gt; move_uploaded_file() get error message from die() and can't copy/move<br />
&gt;&gt; temp_file into directory bilder<br />
&gt;&gt; <br />
&gt;&gt; I have try to chmod 0777 bilder/ but it did not help.<br />
&gt;&gt; Also I have try to chown www-data.www-data bilder/ since Ubuntu Server<br />
&gt;&gt; run apache as www-data user...<br />
&gt;&gt; <br />
&gt;&gt; Here is my souce code<br />
&gt;&gt; ------------------------------------------------------<br />
&gt;&gt; // Temfil lagres midlertidig på serveren som<br />
&gt;&gt;        // spesifisert i php.ini<br />
&gt;&gt;        $tmp_fil = $_FILES['filbane']['temp_name'];<br />
&gt; <br />
&gt; tmp_name not temp_name<br />
<br />
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: <a href="http://php.net/error_reporting" target="_blank"  rel="nofollow">http://php.net/error_reporting</a>.<br />
<br />
-Stuart<br />
<br />
-- <br />
Stuart Dallas<br />
3ft9 Ltd<br />
<a href="http://3ft9.com/" target="_blank"  rel="nofollow">http://3ft9.com/</a><br />
<br />
-- <br />
PHP General Mailing List (http://www.php.net/)<br />
To unsubscribe, visit: <a href="http://www.php.net/unsub.php" target="_blank"  rel="nofollow">http://www.php.net/unsub.php</a>]]></description>
            <dc:creator>Stuart Dallas</dc:creator>
            <category>php-general</category>
            <pubDate>Wed, 25 Apr 2012 10:50:46 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?8,485538,485618#msg-485618</guid>
            <title>Re: [PHP] What is wrong here?</title>
            <link>http://www.serverphorums.com/read.php?8,485538,485618#msg-485618</link>
            <description><![CDATA[ &quot;Karl-Arne Gjersøyen&quot; &lt;karlarneg@gmail.com&gt; hat am 25. April 2012 um 06:45<br />
geschrieben:<br />
<br />
&gt; Hello again.<br />
&gt; I can't figure out what is wrong here.<br />
&gt;<br />
&gt; move_uploaded_file() get error message from die() and can't copy/move<br />
&gt; temp_file into directory bilder<br />
&gt;<br />
&gt; I have try to chmod 0777 bilder/ but it did not help.<br />
&gt; Also I have try to chown www-data.www-data bilder/ since Ubuntu Server<br />
&gt; run apache as www-data user...<br />
&gt;<br />
&gt; Here is my souce code<br />
&gt; ------------------------------------------------------<br />
&gt; // Temfil lagres midlertidig på serveren som<br />
&gt;         // spesifisert i php.ini<br />
&gt;         $tmp_fil = $_FILES['filbane']['temp_name'];<br />
<br />
tmp_name not temp_name<br />
<br />
-- <br />
PHP General Mailing List (http://www.php.net/)<br />
To unsubscribe, visit: <a href="http://www.php.net/unsub.php" target="_blank"  rel="nofollow">http://www.php.net/unsub.php</a>]]></description>
            <dc:creator>marco@behnke.biz</dc:creator>
            <category>php-general</category>
            <pubDate>Wed, 25 Apr 2012 10:50:46 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?8,485538,485538#msg-485538</guid>
            <title>[PHP] What is wrong here?</title>
            <link>http://www.serverphorums.com/read.php?8,485538,485538#msg-485538</link>
            <description><![CDATA[ Hello again.<br />
I can't figure out what is wrong here.<br />
<br />
move_uploaded_file() get error message from die() and can't copy/move<br />
temp_file into directory bilder<br />
<br />
I have try to chmod 0777 bilder/ but it did not help.<br />
Also I have try to chown www-data.www-data bilder/ since Ubuntu Server<br />
run apache as www-data user...<br />
<br />
Here is my souce code<br />
------------------------------------------------------<br />
// Temfil lagres midlertidig på serveren som<br />
	// spesifisert i php.ini<br />
	$tmp_fil = $_FILES['filbane']['temp_name'];<br />
	// lagre filnavnet..<br />
	$filnavn = &quot;bilder/&quot; . $_FILES['filbane']['name'];<br />
	// ..og legg fila i katalogen bilder<br />
	move_uploaded_file($tmp_fil, $filnavn) or die(&quot;Feilmelding: Kunne<br />
ikke flytte $filnavn&quot;);<br />
	<br />
<br />
Karl<br />
<br />
-- <br />
PHP General Mailing List (http://www.php.net/)<br />
To unsubscribe, visit: <a href="http://www.php.net/unsub.php" target="_blank"  rel="nofollow">http://www.php.net/unsub.php</a>]]></description>
            <dc:creator>Karl-Arne Gjersøyen</dc:creator>
            <category>php-general</category>
            <pubDate>Wed, 25 Apr 2012 06:51:20 +0200</pubDate>
        </item>
    </channel>
</rss>
