Lets say I want to use a php script to read the current page's code into a string how would I do that without executing the php contents of the page?
For example using
file_get_contents("test.php");
Will get the contents of test.php but as it does it will execute the code... How can I just get the source code of the file?
file_get_contentswon't execute the file. Not unless it's on a remote host, in which case what you ask is impossible.