Only do this if all the files should be publicly accessible. Otherwise,
you'll need to create a php wrapper to do authorization before sending
the file.

-Roberto


Rahul Sitaram Johari wrote:
> Ave,
> 
> I¹m going to try creating the sharepoint within my webserver, as suggested
> by you and tijnema. I think that¹s probably the easiest and quickest
> solution to this. I¹ll report back!
> 
> Thanks!
> 
> 
> On 3/29/07 4:48 PM, "Daniel Brown" <[EMAIL PROTECTED]> wrote:
> 
>>     Rahul,
>>
>>     Your best bet in this case, with the most minimal coding, would be to
>> either symlink the individual files into a web-accessible directory, or
>> symlink the directory containing those files into a web-accessible location.
>> However, this part would be up to you, determinable by your current system
>> configuration and potential security risks ( e.g. - the directory is also the
>> parent directory for information needing to remain secure, so we don't want 
>> to
>> symlink the directory).
>>
>>     Another option would be to read the file through a script and output it
>> sending a MIME type prior to the data output, placing the name of the file on
>> the server into the output bugger head so that the user would see it simply 
>> as
>> a direct download.
>>
>> On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote:
>>> Ave,
>>>
>>> This is actually a continuation of my previous ³Show files using Wildcards²
>>> thread, but a different problem.
>>>
>>> Code:
>>>
>>>     <?php
>>>     exec("find /Users/rjohari/Documents/XFER/espi -type f -name
>>> ".$row['PHONE']."*.vox", $files);
>>>     foreach ($files as $value) {
>>>     echo "<font face=arial size=1><a
>>> href='/Users/rjohari/Documents/XFER/osm/ESPI/".basename($value)."'>".basenam
>>> e($value)."</a></font><BR>";
>>>     }
>>>     ?>
>>>
>>> The files I¹m linking to, in order to let the User download them, reside on
>>> a mounted share on my system. They are on in the Apache Web Server htdocs
>>> folder where my website resides. How do I make these files available to
>>> download if they are not in my webserver folder?
>>>
>>> Thanks!
>>>
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> Rahul Sitaram Johari
>>> CEO, Twenty Four Seventy Nine Inc.
>>>
>>> W: http://www.rahulsjohari.com
>>> E: [EMAIL PROTECTED]
>>>
>>> ³I morti non sono piu soli ... The dead are no longer lonely²
>>>
>>
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to