Stut wrote: > Tom Chubb wrote: >> The host support team told me that: >> Our servers do not allows a HTTP connection onto itself. This is a >> security precaution to stop recursive code. morons.... <?php function teachTheIdiotSysAdmin() { echo 'look no self referencing HTTP request<br />'; teachTheIdiotSysAdmin(); } ?> >> You can try to reference >> the code by path rather than HTTP >> ...which works fine! > > Won't something like this work... > > ob_start(); > // If needed you can set up vars used by player.php here > include('player.php'); > $code = ob_get_contents(); > ob_end_clean(); > > That will capture any output from player.php and stuff it into $code. > Much nicer than anything else suggested so far. yes indeed - actually this is the best solution - no eval, no extra request. good catch Stut > > -Stut > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php