<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018141" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018141</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1107020</link>
    <description> &lt;p&gt;Yes, Mark&#039;s correct.&lt;/p&gt;
&lt;p&gt;I cannot FTP up past the www directory.&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 Apr 2002 14:23:04 +0000</pubDate>
 <dc:creator>FinalMjolnir666</dc:creator>
 <guid isPermaLink="false">comment 1107020 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1106685</link>
    <description> &lt;p&gt;I think that &#039;username&#039; means the person&#039;s username, and not literally &#039;username&#039;.  So,assuming his username is &#039;ecreations&#039;, his path would be /home/ecreations/www/scmaps/motw/&lt;/p&gt;
 </description>
     <pubDate>Thu, 11 Apr 2002 20:49:11 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1106685 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1106665</link>
    <description> &lt;p&gt;/home/username/www/scmaps/motw still doesn&#039;t look right according to your domain name. It looks as though the host keeps thier hosted in the username dir. and your the only one with www as your dir. name, which is different than eracreations. Ask your host specificly for the path to your site on his server.&lt;br /&gt;
Also, I can&#039;t believe you can see the server in your FTP up from your own host dir. I wonder if they know about this. Sounds like a security leak to me. Go to /home and see all the other hosted sites dir.&#039;s. Bet you can steal some files. I had a host like that once. I could FTP to every site on his server and look at everones files. Pretty cool, but dishonost.&lt;/p&gt;
 </description>
     <pubDate>Thu, 11 Apr 2002 15:30:19 +0000</pubDate>
 <dc:creator>theprofessional</dc:creator>
 <guid isPermaLink="false">comment 1106665 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1106624</link>
    <description> &lt;p&gt;the /home/username/www/... is from the FTP managers.  Such as WS_FTP95 LE.&lt;/p&gt;
&lt;p&gt;It starts out in the home/username/ directory, and from there there is a couple directorys, one of which is for mail, another is for logs etc.  And one is www which is where regular files are.  The domain name is &lt;a href=&quot;http://www.eracreations.com&quot; class=&quot;bb-url&quot;&gt;eracreations.com&lt;/a&gt; and I&#039;m trying to upload maps into &lt;a href=&quot;http://www.eracreations.com/scmaps/motw&quot; class=&quot;bb-url&quot;&gt;eracreations.com/scmaps/motw&lt;/a&gt; (or melee, depending on whats selected.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Apr 2002 19:33:46 +0000</pubDate>
 <dc:creator>FinalMjolnir666</dc:creator>
 <guid isPermaLink="false">comment 1106624 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1106601</link>
    <description> &lt;p&gt;taff, your correct. My host has this turned off for me too but, this is the code to use in those circumstances. And I know it works because I have two clients that use file uploads on the same host.&lt;/p&gt;
&lt;p&gt;/home/username/www/scmaps/motw doesn&#039;t look right. I&#039;m assuming that scmaps is your domain? Ask your host for the correct file path on the server to your site. And if your trying this with your own server setup with Apache or something, forget it. Test the code online, live on your hosted server. In addition, don&#039;t try to upload from one domain to another, stay within the same domain. Plus, if your domain name is a pointer there may be a server error that the admin. will have to fix. Try it again with these things in mind and if it doesn&#039;t work again, you&#039;ll need to get the host admin to help because it might be on his end.&lt;/p&gt;
&lt;p&gt;Post your fix if you become successful. Back when I was first trying to get file uploads to work for me, it took an entire week of research and hair pulling, but I did it on my own. There are a lot of if&#039;s and variables to consider when coding for this, it is very frustrating.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Apr 2002 13:42:45 +0000</pubDate>
 <dc:creator>theprofessional</dc:creator>
 <guid isPermaLink="false">comment 1106601 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1106596</link>
    <description> &lt;p&gt;A host.  I&#039;ll contact them and see if they have disabled the features or if they applyed the patch.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Apr 2002 13:07:39 +0000</pubDate>
 <dc:creator>FinalMjolnir666</dc:creator>
 <guid isPermaLink="false">comment 1106596 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1106542</link>
    <description> &lt;p&gt;Is this your server you are dealing with or a host? There have been some recent security vulnerabilities involving the PHP file upload feature and a number of hosts have disabled the feature because of it.&lt;/p&gt;
&lt;p&gt;I think I have a relevant link here somewhere...&lt;/p&gt;
&lt;p&gt;Ah, voila!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.cert.org/advisories/CA-2002-05.html&quot; class=&quot;bb-url&quot;&gt;http://www.cert.org/advisories/CA-2002-05.html&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Apr 2002 19:40:59 +0000</pubDate>
 <dc:creator>taff</dc:creator>
 <guid isPermaLink="false">comment 1106542 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1106539</link>
    <description> &lt;p&gt;Well, it seems to be working it just says it doesn&#039;t have permission to create the file in the directory, even though the directory is chmoded so that anyone can.&lt;/p&gt;
&lt;p&gt;In the $destination variables, what should the path look like if I want to upload to /home/username/www/scmaps/motw (or melee) and the .php file (where the code is for the upload is /home/username/www/admin/add_map.php&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Apr 2002 18:46:17 +0000</pubDate>
 <dc:creator>FinalMjolnir666</dc:creator>
 <guid isPermaLink="false">comment 1106539 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1106500</link>
    <description> &lt;p&gt;I&#039;ll do my best. Be forwarned though, there are two ways to upload this way to your server according to your servers PHP version and .ini file setup. The &#039;move_uploaded_file(...&#039; may also be &#039;copy(...&#039;&lt;/p&gt;
&lt;p&gt;if(isset($file)){      //or: if(is_uploaded_file){&lt;br /&gt;
if ($file==&quot;none&quot;){&lt;br /&gt;
echo &quot;You must specify a file to upload&quot;;&lt;br /&gt;
}else{&lt;br /&gt;
if ($type == &quot;mowt&quot;) $destination=&quot;/path/to/site.com/imagefolder&quot;; //change this&lt;br /&gt;
if ($type == &quot;melee&quot;)  $destination=&quot;/path/to/site.com/otherimagefolder&quot;; //change this&lt;br /&gt;
$wdir=&quot;/&quot;;&lt;br /&gt;
if(move_uploaded_file($file,$destination.$wdir.$file_name)) { //type &#039;$file_name&#039; exactly.&lt;br /&gt;
echo&quot;File Uploaded Successfully!&quot;;&lt;br /&gt;
}else{&lt;br /&gt;
echo&quot;Failed to upload picture. Contact the webmaster if this error persist.&quot;;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
}//end of upload &lt;/p&gt;
&lt;p&gt;Also, use this way to start the form, and include a file max size restriction.&lt;/p&gt;
&lt;p&gt;And then use this tag format for the file.&lt;/p&gt;
&lt;p&gt;Of course, this is simplified. Meaning there&#039;s a lot more to do to the entire code, i.e. From validation and file extensions security check. Anyways, hope this helps.&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Apr 2002 14:16:01 +0000</pubDate>
 <dc:creator>theprofessional</dc:creator>
 <guid isPermaLink="false">comment 1106500 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/php-ftp-uploader-error#comment-1106439</link>
    <description> &lt;p&gt;Okay, I guess I lost you guys.  And I guess I was doing something really wrong.&lt;/p&gt;
&lt;p&gt;I want to upload a file from my computer, to a website.&lt;/p&gt;
&lt;p&gt;Like from:&lt;/p&gt;
&lt;p&gt;C:\maps\map1.scx  -&amp;gt;  &lt;a href=&quot;http://www.eracreations.com/maps/map1.scx&quot; class=&quot;bb-url&quot;&gt;http://www.eracreations.com/maps/map1.scx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I thought you could do that with ftp_ things.  I guess not.&lt;/p&gt;
&lt;p&gt;Could you, &#039;theprofessional&#039;, type up some code thats equivalent to the code that I made?  Like the same variable names and everything because I&#039;m not to sure what to make of your code, as I said, I&#039;m fairly new to all this.&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Apr 2002 00:36:16 +0000</pubDate>
 <dc:creator>FinalMjolnir666</dc:creator>
 <guid isPermaLink="false">comment 1106439 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
