<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1034803" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1034803</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/private-downloads#comment-1209089</link>
    <description> &lt;p&gt;anyone?&lt;/p&gt;
 </description>
     <pubDate>Thu, 19 Oct 2006 16:56:15 +0000</pubDate>
 <dc:creator>Iceline</dc:creator>
 <guid isPermaLink="false">comment 1209089 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/private-downloads#comment-1202543</link>
    <description> &lt;p&gt;thanks, I&#039;m sure I could google this and all but could you give an example? Let&#039;s say I put a file called example.zip in the folder safefiles that&#039;s not located in the httpdocs folder but on the same lvl as that and I&#039;m trying to call it from a php file in the httpdocs&lt;/p&gt;
 </description>
     <pubDate>Tue, 20 Jun 2006 11:36:56 +0000</pubDate>
 <dc:creator>Iceline</dc:creator>
 <guid isPermaLink="false">comment 1202543 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/private-downloads#comment-1202502</link>
    <description> &lt;p&gt;What you would do instead of linking to a file with href is link to a php file. That php file would not output HTML. Instead, it would read in a file using fopen, or something of the sort. Then you would just output it using echo fread, or something along those lines.&lt;/p&gt;
&lt;p&gt;Of course, you&#039;ll likely use some sort of file id passed in as a URL parameter if this system is mean to work for multiple files.&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jun 2006 19:07:00 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1202502 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/private-downloads#comment-1202501</link>
    <description> &lt;p&gt;yeah I use php a lot, but I always link to stuf with href &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Jun 2006 18:57:59 +0000</pubDate>
 <dc:creator>Iceline</dc:creator>
 <guid isPermaLink="false">comment 1202501 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/private-downloads#comment-1202313</link>
    <description> &lt;p&gt;You don&#039;t use href. You have to use server-side scripting like Perl or PHP. Are you familiar with any scripting/programming language?&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jun 2006 16:35:21 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1202313 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/private-downloads#comment-1202311</link>
    <description> &lt;p&gt;I&#039;m not quite sure I understand, could you give me the code to like to such a file, because when I use the a href=&quot;&quot; part, it always links to something in the public_html folder&lt;/p&gt;
 </description>
     <pubDate>Fri, 16 Jun 2006 15:11:06 +0000</pubDate>
 <dc:creator>Iceline</dc:creator>
 <guid isPermaLink="false">comment 1202311 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/private-downloads#comment-1202174</link>
    <description> &lt;p&gt;As long as the permissions are right, your script can read anything on the server by using an absolute or relative path. Just don&#039;t use a URL, rather use the path on the system.&lt;/p&gt;
&lt;p&gt;Then go to that path, read the file in with your script and spit it directly back out without any modifications (using a print statement or something similar). Then the true path is hidden (and not even accessible) to the end user.&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jun 2006 18:22:54 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1202174 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/private-downloads#comment-1202169</link>
    <description> &lt;p&gt;and how do I let the script download files from a directory not in the public_html dir?&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jun 2006 17:31:13 +0000</pubDate>
 <dc:creator>Iceline</dc:creator>
 <guid isPermaLink="false">comment 1202169 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/private-downloads#comment-1202159</link>
    <description> &lt;p&gt;To do this (at least how I see it):&lt;/p&gt;
&lt;p&gt;-Create a directory not available in the /public_html/ directory of your website, we&#039;ll call it &quot;private&quot;  (this sits one step above the public dir)&lt;br /&gt;
-Add these files to the dir&lt;br /&gt;
-At the download page, include a forced-download script that calls the file from the private dir, as long as the user has permissions&lt;/p&gt;
&lt;p&gt;Another possible option is to create directories for different users/user types and use a .htaccess file to password protect access to them.&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jun 2006 13:51:27 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1202159 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
