To return to the scripts listing, click here
To see a preview of this script, click here



<?php

function GetContents($file) {
    
#THIS FUNCTION IS SIMILIAR TO PHP'S file_get_contents() FUNCTION
    #EXCEPT THAT IT INCLUDES THE FILE SO THAT IT ACTUALLY BECOMES
    #A PIECE OF YOUR CURRENT SCRIPT; SO IT CAN TOUCH VARIABLES
    #CURRENTLY SET IN YOUR RUNNING SCRIPT.
    #RETURNS THE CONTENT IN A STRING.
    #USAGE: $content = GetContents($file_name_to_include);
    //eval(CreateGlobals()); <-Useful here so your vars can be used in your included files; see http://php.sitexero.net/?code=FUNC:CreateGlobals
    
ob_start();
    include(
$file);
    return 
ob_get_clean();
}

//DEBUGGING
print 'There is no preview available for this function.';

?>




To see a preview of this script, click here
To return to the scripts listing, click here