1) // switch to the parent dir $rp=realpath($rp.$sep.'..'); // attempt to include the needed file, & use its location to auto-orient if(file_exists($rp.$filename_of_required_include)){ require_once($rp.$filename_of_required_include); } else { // throw a fatal error if tree was climbed and requisite file was not found die('404! '.$rp.$filename_of_required_include); } } // ------------------------------------------------------------------------- // // end common code ?>
To subscribe to OTC news, enter your email below and click the subscribe button. You will receive an email asking you to confirm that you really want to join this list.
If you no longer want to receive OTC news emails, enter your email address below and click unsubscribe.