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() will only execute that file and give you the output as the content if you refer to it as a URL. If you just give a filename, it will attempt to read it from (in your case) the current directory.
file_get_contents()