Re: [PHP] Re: uploading file outside WEB Root [0T]
On Fri, Sep 12, 2008 at 12:47 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> 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 :) True, I forgot to mention that. Junctions only work with directories, which is a step in the right direction, but definitely not as good as real symbolic links. Brady -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: uploading file outside WEB Root [0T]
On Fri, 2008-09-12 at 14:39 -0500, Boyd, Todd M. wrote: > > -Original Message- > > From: Robert Cummings [mailto:[EMAIL PROTECTED] > > 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:[EMAIL PROTECTED] > > > > Sent: Friday, September 12, 2008 7:16 AM > > > > To: [EMAIL PROTECTED] > > > > 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 <[EMAIL PROTECTED]> > > > > > > > > > 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. > > > > > > > > Microsoft sucks because it doesn't have symbolic links. > > > > > > > > ;) > > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: uploading file outside WEB Root [0T]
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > 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:[EMAIL PROTECTED] > > > Sent: Friday, September 12, 2008 7:16 AM > > > To: [EMAIL PROTECTED] > > > 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 <[EMAIL PROTECTED]> > > > > > > > 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. > > > > Microsoft sucks because it doesn't have symbolic links. > > > > ;) 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. FTFY. :D Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: uploading file outside WEB Root
> -Original Message- > From: Brady Mitchell [mailto:[EMAIL PROTECTED] > Sent: Friday, September 12, 2008 11:44 AM > To: Luke > Cc: [EMAIL PROTECTED]; php-general@lists.php.net > Subject: Re: [PHP] Re: uploading file outside WEB Root > > > On Sep 12, 2008, at 516AM, Luke wrote: > > > Could you use a symbolic link? If on Linux 'ln -s /fpath/foldername'? > > > > Not sure how to do this on Windows > > Windows 2k and up do support symbolic links, take a look at > http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx Holy. Crap. I love you. Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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:[EMAIL PROTECTED] > > Sent: Friday, September 12, 2008 7:16 AM > > To: [EMAIL PROTECTED] > > 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 <[EMAIL PROTECTED]> > > > > > 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. Microsoft sucks because it doesn't have symbolic links. ;) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: uploading file outside WEB Root
On Sep 12, 2008, at 516AM, Luke wrote: Could you use a symbolic link? If on Linux 'ln -s /fpath/foldername'? Not sure how to do this on Windows Windows 2k and up do support symbolic links, take a look at http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx Brady -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: uploading file outside WEB Root
> -Original Message- > From: Luke [mailto:[EMAIL PROTECTED] > Sent: Friday, September 12, 2008 7:16 AM > To: [EMAIL PROTECTED] > 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 <[EMAIL PROTECTED]> > > > 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. You can make shortcuts to locations, and drag/drop/click those shortcuts as if they were the actual folder/file... but as soon as you get out of the GUI, Windows doesn't know what to do with them. As for uploading outside of your web root--it's possible. You just need to give apache/IIS/whatever-your-web-server-is the proper permissions for the folder in question. I would recommend making an "uploads" folder one level above your web root if possible. Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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 <[EMAIL PROTECTED]> > 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. >> >> I have tried both the relative path and also the full path (from the >> $_SERVER[DOCUMENT_ROOT] variable). >> >> Now I can't get the upload to work and have no idea what the problem could >> be. I have also set the permissions of the folder, so that can't be a >> problem. >> >> Could it be a problem with server hosting restrictions? Or maybe the >> server >> is setup for virtual hosting? >> >> Thanks >> Angelo >> >> >> >> > Hi Angelo, > dev and live are the same Server/Machine type? > Restrictions on the Folder? ( Group restrictions, User Restrictions, etc) > Exists the Folder on the Live System? > > > Regards > > Carlos > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Luke Slater
[PHP] Re: uploading file outside WEB Root
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. I have tried both the relative path and also the full path (from the $_SERVER[DOCUMENT_ROOT] variable). Now I can't get the upload to work and have no idea what the problem could be. I have also set the permissions of the folder, so that can't be a problem. Could it be a problem with server hosting restrictions? Or maybe the server is setup for virtual hosting? Thanks Angelo Hi Angelo, dev and live are the same Server/Machine type? Restrictions on the Folder? ( Group restrictions, User Restrictions, etc) Exists the Folder on the Live System? Regards Carlos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php