1
Discussion & Troubleshooting / News Script doesnt work
« on: April 24, 2003, 09:27:07 PM »
for some strange reason my news-script won't work.
im only getting this error message where the news shuld appear when i go to index.php?template=news
i got it all done like it's described in the faq forum but nothing.
this is the news2.php to include
and this is the command i used in the news.html template
i dunno what i did wrong. hope you can tell me. thx[/code]
im only getting this error message where the news shuld appear when i go to index.php?template=news
Code: [Select]
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/www/web1378/html/corenews2/news2.php on line 7
Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/local/lib/php/shownews.php) is not within the allowed path(s): (/home/www/web1378/) in /home/www/web1378/html/corenews2/news2.php on line 8
Warning: main(shownews.php) [function.main]: failed to create stream: Operation not permitted in /home/www/web1378/html/corenews2/news2.php on line 8
Warning: main() [function.main]: Failed opening 'shownews.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/web1378/html/corenews2/news2.php on line 8
i got it all done like it's described in the faq forum but nothing.
this is the news2.php to include
Code: [Select]
<html>
<head>
<body>
<?php
chdir("corenews2");
include("shownews.php");
?>
</body>
</html>
and this is the command i used in the news.html template
Code: [Select]
<?php
include($_SERVER['DOCUMENT_ROOT']."/corenews2/news2.php");
?>
i dunno what i did wrong. hope you can tell me. thx[/code]