PHP include help
-
I’ve installed exec-php so that php includes work in pages and such, but I keep getting the following errors:
Warning: Unknown(potter_sidebar.php): failed to open stream: No such file or directory in /home/xxx/public_html/staff/tommay/wordpress/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 1
Warning: Unknown(potter_sidebar.php): failed to open stream: No such file or directory in /home/xxx/public_html/staff/tommay/wordpress/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 1
Warning: Unknown(potter_sidebar.php): failed to open stream: No such file or directory in /home/xxx/public_html/staff/tommay/wordpress/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 1
Warning: (null)() [function.include]: Failed opening ‘potter_sidebar.php’ for inclusion (include_path=’/usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php:/home/xxx/php’) in /home/xxx/public_html/staff/tommay/wordpress/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 1
Line 41-45 of runtime.php:
ob_start(); eval("?>$content<?php "); $output = ob_get_contents(); ob_end_clean(); return $output;
And my php include is…
<?php include("potter_sidebar.php"); ?>
If anyone could help, it’d be great, thanks in advance.
- The topic ‘PHP include help’ is closed to new replies.