Re: [PHP] Making your include files invisible (header() in if loop)

2002-02-01 Thread Erik Price
On Thursday, January 31, 2002, at 11:50 PM, qartis wrote: I wanted to hide the existance of my include files by making them 'invisible': give a 404 error when requested. This worked, but the files that were including were obviously 404ing too. So I decided to use $PHP_SELF and check

RE: [PHP] Making your include files invisible (header() in if loop)

2002-02-01 Thread Jerry Verhoef (UGBI)
Or even better put them outside your www root. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 4:19 PM To: qartis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Making your include files invisible (header() in if loop) On Thursday

[PHP] Making your include files invisible (header() in if loop)

2002-01-31 Thread qartis
I wanted to hide the existance of my include files by making them 'invisible': give a 404 error when requested. This worked, but the files that were including were obviously 404ing too. So I decided to use $PHP_SELF and check whether the script's PHP_SELF was it's filename, which would mean that

RE: [PHP] Making your include files invisible (header() in if loop)

2002-01-31 Thread Peter Brown
I don't know if this is related but header() must be called before any actual output is sent. One way to resolve this is to use the ob_start() tag at the start of the code, this turns output buffering on. Mind you I am no expert and stand ready to be corected and berated. Peter I wanted to