<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1026856" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1026856</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/image-upload-php#comment-1160964</link>
    <description> &lt;p&gt;Have you chmod&#039;d the upload folder to 777 ?&lt;/p&gt;
&lt;p&gt;You may also have to use the complete path to the place you want to put it&lt;/p&gt;
&lt;p&gt;$dir1 = &quot;/home/username/public_html/foldername/admin/&quot;;&lt;br /&gt;
$dir = &quot;psimages/&quot;; &lt;/p&gt;
&lt;p&gt;copy(file,dir1.dir.file)  of course these would be the variables used.&lt;/p&gt;
&lt;p&gt;for security you should really use&lt;br /&gt;
is_uploaded_file($_FILES[&#039;imgfile&#039;][&#039;tmp_name&#039;]&lt;br /&gt;
if done like:&lt;br /&gt;
if(is_uploaded_file($_FILES[&#039;imgfile&#039;][&#039;tmp_name&#039;]) { ... }&lt;br /&gt;
reads: if was uploaded from your form, return true, otherwise return false (security risk)&lt;/p&gt;
 </description>
     <pubDate>Mon, 01 Nov 2004 10:21:55 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1160964 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
