Re: Link to download files on another part of system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2007. 03. 29, csütörtök keltezéssel 22.46-kor Tijnema ! ezt írta:
> On 3/29/07, Rahul Sitaram Johari <sleepwalker@xxxxxxxxxxxxxxxx> 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!
> 
> A very simple way is to link the
> Users/rjohari/Documents/XFER/osm/ESPI/ to some folder inside your www
> directory :)

I think following symlinks can be switched off in apache configuration
by default (however I'm absolutely not sure about this...) - so use it
only if you can configure apache

greets
Zoltán Németh

> 
> Didn't test it, but it should work though. Else you need to create
> some download script. (header, file_get_contents,echo)
> 
> Tijnema
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Rahul Sitaram Johari
> > CEO, Twenty Four Seventy Nine Inc.
> >
> > W: http://www.rahulsjohari.com
> > E: sleepwalker@xxxxxxxxxxxxxxxx
> >
> > ³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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux