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
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
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
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
4 matches
Mail list logo