This is actually a new command for me, I've never seen this one before...
A quick google search retrieved this for me:
http://www.w3schools.com/php/func_misc_show_source.asp- Code: Select all
PHP show_source() Function
--------------------------------------------------------------------------------
Complete PHP Misc Reference
--------------------------------------------------------------------------------
Definition and Usage
The show_source() function outputs a file with the PHP syntax highlighted. The syntax is highlighted by using HTML tags.
The colors used for highlighting can be set in the php.ini file or with the ini_set() function.
This function returns TRUE on success, or FALSE on failure.
show_source() is an alias of highlight_file().
Syntax
show_source(filename,return)
Parameter Description
filename Required. Specifies the file to display
return Optional. If this parameter is set to TRUE, this function will return the highlighted code as a string, instead of printing it out. Default is FALSE
I saved and ran a test file:
- Code: Select all
<html>
<body>
<?php
show_source("test.php");
?>
</body>
</html>
Then I modified it like this and ran it:
- Code: Select all
<html>
<body>
<?php
$test=show_source("test.php", true);
echo "HERE's the code:<br /><br />$test";
?>
</body>
</html>
And it either file ran perfectly for me.
Just thought I'd verify that it
does work for me though...