[PHP] Re: Accessing Files Outside the Web Root

2013-03-14 Thread Jim Giner
On 3/13/2013 4:38 PM, Dale H. Cook wrote: Let me preface my question by noting that I am virtually a PHP novice. Although I am a long-time webmaster, and have used PHP for some years to give visitors access to information in my SQL database, this is my first attempt to use it for another

Re: [PHP] Re: Accessing Files Outside the Web Root

2013-03-14 Thread Dale H. Cook
At 11:20 AM 3/14/2013, Jim Giner wrote: And use a captcha (which I personally can never read!) to keep the robots at bay. I dislike CAPTCHAs, and some bots are pretty good at beating them. I'm exploring alternatives that exploit the differences between the ways that bots deal with pages and

[PHP] Re: Accessing Files Outside the Web Root - Progress Report 1

2013-03-14 Thread Jim Giner
On 3/14/2013 12:40 PM, Dale H. Cook wrote: I have made some progress. It occurred to me that the problem that I had in accessing files outside the web root could be a pathing problem, and that was the case. I finally ran phpinfo() and examined _SERVER[DOCUMENT_ROOT] to see what the correct

Re: [PHP] Re: Accessing Files Outside the Web Root

2013-03-14 Thread Jim Giner
On 3/14/2013 12:43 PM, Dale H. Cook wrote: At 11:20 AM 3/14/2013, Jim Giner wrote: And use a captcha (which I personally can never read!) to keep the robots at bay. I dislike CAPTCHAs, and some bots are pretty good at beating them. I'm exploring alternatives that exploit the differences

Re: [PHP] Re: Accessing Files Outside the Web Root

2013-03-14 Thread Maciek Sokolewicz
On 14-3-2013 17:43, Dale H. Cook wrote: At 11:20 AM 3/14/2013, Jim Giner wrote: And use a captcha (which I personally can never read!) to keep the robots at bay. I dislike CAPTCHAs, and some bots are pretty good at beating them. I'm exploring alternatives that exploit the differences

Re: [PHP] Re: Accessing Files Outside the Web Root

2013-03-14 Thread Marc Guay
correlate various types of information, which is very hard. For a human, this is very simple. It's simple, and very friendly to your guests. Assuming humans will continue to behave as I've seen them behave so far, even this simple system will guarantee you angry emails from people who'll want

Re: [PHP] Re: Accessing Files Outside the Web Root - Progress Report 1

2013-03-14 Thread Dale H. Cook
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

Re: [PHP] Re: Accessing Files Outside the Web Root

2013-03-14 Thread Dale H. Cook
At 02:27 PM 3/14/2013, Marc Guay wrote: Assuming humans will continue to behave as I've seen them behave so far, even this simple system will guarantee you angry emails from people who'll want to argue that five is a colour in some circumstances. Marc has a very valid point. My goal is to weed

Re: [PHP] Re: Accessing Files Outside the Web Root - ProgressReport 1

2013-03-14 Thread Jim Giner
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