RE: [PHP] Re: uploading file outside WEB Root [0T]
| From: | Robert Cummings | Date: | Fri, 12 Sep 2008 19:47:04 +0000 |
| Subject: | RE: [PHP] Re: uploading file outside WEB Root [0T] | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280046@lists.php.net to get a copy of this message | ||
On Fri, 2008-09-12 at 14:39 -0500, Boyd, Todd M. wrote:
> > -----Original Message-----
> > From: Robert Cummings [mailto:robert@interjinn.com]
> > Sent: Friday, September 12, 2008 1:12 PM
> > To: Boyd, Todd M.
> > Cc: Luke; php-general@lists.php.net
> > Subject: RE: [PHP] Re: uploading file outside WEB Root
> >
> > On Fri, 2008-09-12 at 09:38 -0500, Boyd, Todd M. wrote:
> > > > -----Original Message-----
> > > > From: Luke [mailto:tinmachin3@googlemail.com]
> > > > Sent: Friday, September 12, 2008 7:16 AM
> > > > To: info@simply-networks.de
> > > > Cc: php-general@lists.php.net
> > > > Subject: Re: [PHP] Re: uploading file outside WEB Root
> > > >
> > > > Could you use a symbolic link? If on Linux 'ln -s
> > /fpath/foldername'?
> > > >
> > > > Not sure how to do this on Windows
> > > >
> > > > 2008/9/1 Carlos Medina <info@simply-networks.de>
> > > >
> > > > > Angelo Zanetti schrieb:
> > > > >
> > > > >> Hi All,
> > > > >> For security purposes I would like to upload a file outside the
> > > > webroot.
> > > > >>
> > > > >> I have got this to work on my local dev machine but it doesn't
> > seem
> > > > to
> > > > >> work
> > > > >> on the live server.
> > >
> > > ---8<--- snip
> > >
> > > AFAIK, there is no good way to accomplish this on a Windows system.
> > You
> > > can map a network location to a drive, and you can even map a folder
> > to
> > > a drive... but I've never seen any way to map something to a folder
> > (or
> > > file). If there is a solution, it's probably a complex registry hack
> > > that MIGHT work with your version of Windows.
> >
> > <tirade>
> >
> > Microsoft sucks because it doesn't have symbolic links.
> >
> > </tirade>
> >
> > ;)
>
> Microsoft sucks because they didn't make their symbolic linking
> methodology public knowledge and charge additional fees to obtain the
> Win2k system kit they suggest you use to make the links in the first
> place.
Wel from what I read their "symbolic links" only support directories.
That's a half-ass done job IMHO. It should be possible to link anything.
Directories, files, sockets, pipes, devices, what have ya. I guess
that's the advantage of nixes... everything is pretty much a file and
symbolic links for files are well implemented and supported :)
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP