Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: trainer4 - maaliskuu 07, 2005, 08:44:06 IP

Otsikko: Help with ssi.php
Kirjoitti: trainer4 - maaliskuu 07, 2005, 08:44:06 IP
Yeah, I'm trying to use the News Scripting function of SMF... I'm doing all the coding correctly, yet I keep getting the following error:
Warning: main(http://trainer4.hurstunlimited.com/forum/SSI.php?ssi_function=boardNews;board=2): failed to open stream: Bad file descriptor in e:\hul\servers\http\trainer4\index.php on line 92

Warning: main(): Failed opening 'http://trainer4.hurstunlimited.com/forum/SSI.php?ssi_function=boardNews;board=2' for inclusion (include_path='.;c:\php4\pear') in e:\hul\servers\http\trainer4\index.php on line 92

Whe I access the address directly through my browser, it loads fine. The board number exists and there is atleast one topic in it. Please help.

The readme told me to use the include in the <? include("http://www.simplemachines.org/community/SSI.php?ssi_function=boardNews;board=9"); ?> format, in which I did. I even have the  <?php require(".\\trainer4\\forum\\SSI.php"); ?> (beginning of path blocked out for security reasons) in the file at the top, but I still get the same error.

Note: this is on a windows server running apache 1.3.33 and php 4.3.10
Otsikko: Re: Help with ssi.php
Kirjoitti: Oldiesmann - maaliskuu 07, 2005, 11:04:42 IP
<?php
include_once('/path/to/SSI.php');
ssi_boardNews($board 9$limit null$start null$length nulloutput_method 'echo');
?>