10-16-2007, 09:29 AM
|
#4 (permalink)
|
|
The Contributor
Join Date: Sep 2007
Posts: 89
Thanks: 1
|
Quote:
Originally Posted by obolus
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.
|
Thanks, will give that a go. :)
|
|
|
|