latheesan
01-03-2010, 10:38 AM
Hello,
I've been using SMF forum script and recently switched to IPB v3.0.5.
I had a look at the ssi.php file and according to the guide, this should've work:
news_test.php
<?php
include(dirname(realpath(__FILE__)) ."/forum/ssi.php?a=news&show=1");
?>
But instead, it errors like so:
Warning: main(/home/USERNAME/public_html/forum/ssi.php?a=news&show=1) [function.main]: failed to open stream: No such file or directory in /home/USERNAME/public_html/news_test.php on line 3
Warning: main(/home/USERNAME/public_html/forum/ssi.php?a=news&show=1) [function.main]: failed to open stream: No such file or directory in /home/USERNAME/public_html/news_test.php on line 3
Warning: main() [function.include]: Failed opening '/home/USERNAME/public_html/forum/ssi.php?a=news&show=1' for inclusion (include_path='/usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/USERNAME/public_html/news_test.php on line 3
I have already configured the news board in the admin ACP. I also tried different methods to load the SSI like this:
include("http://www.domain.com/forum/ssi.php?a=news&show=1");
include("/forum/ssi.php?a=news&show=1");
include("forum/ssi.php?a=news&show=1");
... none of these include method seems to be working. sometimes, the ssi.php file gets included correct, but it returns a blank page, any idea where I might be going wrong?
could this be due to open_basedir in effect and it's not allowing me to parse URLs? Cause, the only time i get blank page without any errors is when i include like this: http://www.domain.com/forum/ssi.php?a=news&show=1
Thanks in advance for any help.
I've been using SMF forum script and recently switched to IPB v3.0.5.
I had a look at the ssi.php file and according to the guide, this should've work:
news_test.php
<?php
include(dirname(realpath(__FILE__)) ."/forum/ssi.php?a=news&show=1");
?>
But instead, it errors like so:
Warning: main(/home/USERNAME/public_html/forum/ssi.php?a=news&show=1) [function.main]: failed to open stream: No such file or directory in /home/USERNAME/public_html/news_test.php on line 3
Warning: main(/home/USERNAME/public_html/forum/ssi.php?a=news&show=1) [function.main]: failed to open stream: No such file or directory in /home/USERNAME/public_html/news_test.php on line 3
Warning: main() [function.include]: Failed opening '/home/USERNAME/public_html/forum/ssi.php?a=news&show=1' for inclusion (include_path='/usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/USERNAME/public_html/news_test.php on line 3
I have already configured the news board in the admin ACP. I also tried different methods to load the SSI like this:
include("http://www.domain.com/forum/ssi.php?a=news&show=1");
include("/forum/ssi.php?a=news&show=1");
include("forum/ssi.php?a=news&show=1");
... none of these include method seems to be working. sometimes, the ssi.php file gets included correct, but it returns a blank page, any idea where I might be going wrong?
could this be due to open_basedir in effect and it's not allowing me to parse URLs? Cause, the only time i get blank page without any errors is when i include like this: http://www.domain.com/forum/ssi.php?a=news&show=1
Thanks in advance for any help.
