10-16-2007, 02:39 AM
|
#3 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Location: florida
Posts: 110
Thanks: 36
|
Try this...
Put into page that is including external php page:
PHP Code:
<?php // Def Constant define( 'parentFile' , 1 );
// Load Functions include('includedfile.php'); ?>
Put this into the 'includedfile.php' page:
PHP Code:
<?php /** * Check For Constant. */ defined( 'parentFile' ) or die( 'oh noes' ); ?>
Pretty basic way of doing it. Works though.
Last edited by obolus : 10-16-2007 at 02:41 AM.
Reason: bleh
|
|
|
|