RE: [PHP] Verify script location...

From: Date: Tue, 05 Mar 2002 18:57:48 +0000
Subject: RE: [PHP] Verify script location...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87313@lists.php.net to get a copy of this message
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 -----Original Message----- From: jas [mailto:jlgerfen@hotmail.com] Sent: Monday, March 04, 2002 11:50 PM To: php-general@lists.php.net Subject: [PHP] Verify script location... Ok I have a question that i havent seen a tutorial on... How would I go about making an included file check the host before executing? I want to make sure that any files I use as included in a php document verify the request is coming from a valid script on the same server for instance.. Is this possible and if so could someone give me some more insight or a tutorial on this? Thanks in advance... Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#87313) next »