Re: Verify script location...

From: Date: Tue, 05 Mar 2002 19:56:58 +0000
Subject: Re: Verify script location...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87333@lists.php.net to get a copy of this message
On Tuesday, March 5, 2002, at 01:57 PM, Kevin Stone wrote:
It's not possible to include() a remote file so there may be little point to this. However maybe you want to keep users on your system from including the file in their scripts. In that case I suppose you could set $PHP_SELF (of the main script) to a temporary variable for checking in the included script. -Kevin
Or set an Apache directive (in httpd.conf or .htaccess) that prevents any .inc files from being served by the server. I'm assuming you're using apache. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#87333) next »