Latest Post

Error: No input file specified.

While trying to run a codeigniter app the other day I came across this error just after I had finished uploading the files and making the ne...

Tuesday, June 2, 2009

How to print the contents of a php page into a variable

// To get the generated HTML
$source = file_get_contents("");

// To get everything including PHP source
$source = file_get_contents("/path/to/script.php");

No comments:

Post a Comment

Chitika Ads