There is another way to do this also...

ob_start();
readfile($file);
$var = ob_get_contents();
ob_end_clean();

If you want to parse the file before inputting it into the variable, 
instead of using readfile() use something like:

eval("require(\"".$file."\");");

                                
==================================================
eNetwizard Network
http://www.enetwizard.net/default.ehtml
==================================================
eNetwizard Content Management Server
http://project.enetwizard.net/cmserver.ehtml
==================================================
eNetwizard Managed Hosting Services
http://hosting.enetwizard.net/hosting.ehtml
==================================================

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to