Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
In other words if they are not being used as an include file, then force them to go elsewhere?
When you include it, set some variable to true, like so:
PHP Code:
$included_file = true; include "path/to/file.php";
Then in the file, right at the top, like this:
PHP Code:
if(!$included_file) { header("Location: http://my-desired-location.com/my/directory/file.php"); }
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
Last edited by wayfarer07; 09-03-2008 at 07:33 PM..
|