Author Topic: News Script doesnt work  (Read 3386 times)

0 Members and 1 Guest are viewing this topic.

Offline Kamui

  • Newbie
  • *
  • Posts: 19
    • View Profile
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

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
&#40;"corenews2"&#41;;
    
include&#40;"shownews.php"&#41;;
?>


</body>
</html>


and this is the command i used in the news.html template

Code: [Select]
<?php 
include&#40;$_SERVER['DOCUMENT_ROOT'&#93;."/corenews2/news2.php"&#41;;  
?>


i dunno what i did wrong. hope you can tell me. thx[/code]

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
News Script doesnt work
« Reply #1 on: April 25, 2003, 12:28:48 AM »
Would help alot if u tell us what exactly u are trying to install.
what news script? what faq? can we see the script? a link to it? (not the whole code though :roll:)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Kamui

  • Newbie
  • *
  • Posts: 19
    • View Profile
News Script doesnt work
« Reply #2 on: April 25, 2003, 08:04:54 AM »
corenews you can download at www.coreslawn.de
but attention its german

here you'll find the image gallery which should include the news2.php
http://www.saiyaz.gu1.info/animesessions/index.php?template=news

here you'll find corenews2 on my server
http://www.saiyaz.gu1.info/corenews

thx