Getting errors with smarty php include
Posted: Sun Jan 07, 2007 5:21 pm
I have a simple PHP include that lists the most recent forum posts from phpBB. Since my servers last SQL update, I get this string of errors:
The code for the config.inc.php is about as simple as can be:
Any help sorting this out would be greatly appreciated.[/code]
Code: Select all
Warning: include(): URL file-access is disabled in the server configuration in /hsphere/local/home/lexingto/skatenewspot.com/templates/sns2/config.inc.php on line 5 Warning: include(http://www.skatenewspot.com/phpbb_frontpage.php): failed to open stream: no suitable wrapper could be found in /hsphere/local/home/lexingto/skatenewspot.com/templates/sns2/config.inc.php on line 5 Warning: include(): Failed opening 'http://www.skatenewspot.com/phpbb_frontpage.php' for inclusion (include_path='.:/hsphere/shared/apache/libexec/php5ext/php/:/hsphere/local/home/lexingto/skatenewspot.com/:/hsphere/local/home/lexingto/skatenewspot.com/bundled-libs/') in /hsphere/local/home/lexingto/skatenewspot.com/templates/sns2/config.inc.php on line 5Code: Select all
<?php
$serendipity['smarty']->register_function('phpbb_frontpage', 'phpbb_frontpage');
function phpbb_frontpage($params, &$smarty) {
include 'http://www.skatenewspot.com/phpbb_frontpage.php';
}
?>