Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Help with ssi.php

Aloittaja trainer4, maaliskuu 07, 2005, 08:44:06 IP

« edellinen - seuraava »

trainer4

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

Oldiesmann

<?php
include_once('/path/to/SSI.php');
ssi_boardNews($board 9$limit null$start null$length nulloutput_method 'echo');
?>
Michael Eshom
Christian Metal Fans

Advertisement: