<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1032793" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1032793</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/uploading-files#comment-1194100</link>
    <description> &lt;p&gt;i just need any way to rename the file either by adding the username to file like user_image.file_type or just a random code like 45h78s760i87.gif. i still using the code above&lt;/p&gt;
&lt;p&gt;any help please..&lt;/p&gt;
 </description>
     <pubDate>Sun, 26 Feb 2006 13:31:50 +0000</pubDate>
 <dc:creator>mullet</dc:creator>
 <guid isPermaLink="false">comment 1194100 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/uploading-files#comment-1193640</link>
    <description> &lt;p&gt;i would get it by using time..&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;mHiyd&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;thanks again for your help..&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Feb 2006 23:12:59 +0000</pubDate>
 <dc:creator>mullet</dc:creator>
 <guid isPermaLink="false">comment 1193640 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/uploading-files#comment-1193630</link>
    <description> &lt;p&gt;depends where the 768946975 comes from, is it the user&#039;s id, time, random number ...&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/function.move-uploaded-file.php&quot; class=&quot;bb-url&quot;&gt;http://php.net/manual/en/function.move-uploaded-file.php&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Feb 2006 21:03:53 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1193630 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/uploading-files#comment-1193604</link>
    <description> &lt;p&gt;hi i used something similar but one problem i have is if a user uploads a file with the same name as an existing file it other writes.. how can the you change the names so the file name is like 768946975.jpg instead of me.jpg?&lt;/p&gt;
&lt;p&gt;the code i use is &lt;/p&gt;
&lt;p&gt;-----------------------------------&lt;br /&gt;
  &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; $target_path &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;images1/&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$target_path &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$target_path &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;basename&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_FILES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;uploadedfile&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;name&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]); &lt;br /&gt;&lt;br /&gt;if(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;move_uploaded_file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_FILES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;uploadedfile&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;tmp_name&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$target_path&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;b&amp;gt;The file &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;basename&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_FILES&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;uploadedfile&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;name&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]). &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot; has been uploaded&amp;lt;/b&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;} else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;There was an error uploading the file, please try again!&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;} &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
----------------------------------&lt;/p&gt;
&lt;p&gt;the images1/ is the upload directory. the user then fills out title and description in a form and things like date, file id are hidden fields with echo of necessary info.&lt;/p&gt;
&lt;p&gt;any help would be grateful&lt;/p&gt;
&lt;p&gt;thanks Mullet&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Feb 2006 14:30:19 +0000</pubDate>
 <dc:creator>mullet</dc:creator>
 <guid isPermaLink="false">comment 1193604 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/uploading-files#comment-1191846</link>
    <description> &lt;p&gt;Here&#039;s a free script you can try:&lt;br /&gt;
&lt;a href=&quot;http://tech.tailoredweb.com/simple-upload-53.php&quot; class=&quot;bb-url&quot;&gt;http://tech.tailoredweb.com/simple-upload-53.php&lt;/a&gt;&lt;br /&gt;
Filesize limits will depend on your hosts php.ini.&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Jan 2006 04:10:13 +0000</pubDate>
 <dc:creator>iTEAM.net</dc:creator>
 <guid isPermaLink="false">comment 1191846 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/uploading-files#comment-1191807</link>
    <description> &lt;p&gt;You&#039;ll need some server side code ideally (PHP, ASP, CF etc)&lt;/p&gt;
&lt;p&gt;HTML can create the form but not the transfer or validation of the upload. Then you may also need a database to store the uploaded file names etc.&lt;/p&gt;
&lt;p&gt;Does your host allow server side scripting? If so which.&lt;/p&gt;
 </description>
     <pubDate>Fri, 27 Jan 2006 20:10:46 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1191807 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
