[nycphp-talk] parse file, return as string
Fan, Wellington
wfan at VillageVoice.com
Thu Aug 19 10:47:18 EDT 2004
Howdy Listies,
I want to run a PHP file through the PHP interpreter and return the results
as a string. THe File is not necessarily under docroot, so I've used this:
ob_start();
@include($path_to_file);
$contents = ob_get_clean();
But it seems like I could do this much more elegantly...
Any suggestions?
--
Wellington
More information about the talk
mailing list
Automatic Email Organization without missing anything!