Re: Re: Accessing Files Outside the Web Root - ProgressReport 1

From: Date: Thu, 14 Mar 2013 21:49:23 +0000
Subject: Re: Re: Accessing Files Outside the Web Root - ProgressReport 1
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-320551@lists.php.net to get a copy of this message
On 3/14/2013 3:44 PM, Dale H. Cook wrote:
At 01:26 PM 3/14/2013, Jim Giner wrote:
I don't think you ever want the filename buried in the web page.
Why not? The file itself is outside the root. In any case the finished product will use tokens instead of filenames. While I am working out the bugs it is easier to use filenames. I use an incremental approach to programming (and have used that approach ever since I moved from batch programming to time-shared terminals over 40 years ago).
Plus - easy way to specify a path outside of your webroot:
That is precisely what I indicated that I was doing, using &_SERVER["DOCUMENT_ROOT"], and then using truncation and concatenation. Dale H. Cook, Member, NEHGS and MA Society of Mayflower Descendants; Plymouth Co. MA Coordinator for the USGenWeb Project Administrator of http://plymouthcolony.net the ../ method alleviates the need to identify and truncate. Simpler that's all.
As for the filename - you're saying that your html page is outside the web root? Guess I'm not getting you, cause I didn't think you could do that.

« previous php.general (#320551) next »