Anonymous
02-28-2003, 05:40 PM
On my site I've got Invision Board setup and I've got an include statement on my main page that is supposed to pull the latest 5 posts from my message board and show them on the front page. My main page is supposed to include the output of a function from a php file that is part of the forums. It works sometimes, and other times it doesn't. The code I'm using on the main page for the include statement is:
include("http://www.doom3resource.net/forums/ssi.php?a=lasttopics");
The result of that produces a table that is displayed on my front page. Sometimes it works, and other times it returns an error. If I don't have the entire domain name listed and just try "/forums/ssi.php?blah" or "forums/ssi.php?blah" it returns 3 error messages instead of just 2 and it never works, but if I do include the entire domain name with the statement, it works sometimes. Does anyone know what the problem is? I get this error with the code above when it decides not to work:
Warning: php_hostconnect: connect failed in /home/virtual/site97/fst/var/www/html/index.php on line 65
Warning: Failed opening 'http://www.doom3resource.net/forums/ssi.php?a=lasttopics' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site97/fst/var/www/html/index.php on line 65
Thanks for any help.
include("http://www.doom3resource.net/forums/ssi.php?a=lasttopics");
The result of that produces a table that is displayed on my front page. Sometimes it works, and other times it returns an error. If I don't have the entire domain name listed and just try "/forums/ssi.php?blah" or "forums/ssi.php?blah" it returns 3 error messages instead of just 2 and it never works, but if I do include the entire domain name with the statement, it works sometimes. Does anyone know what the problem is? I get this error with the code above when it decides not to work:
Warning: php_hostconnect: connect failed in /home/virtual/site97/fst/var/www/html/index.php on line 65
Warning: Failed opening 'http://www.doom3resource.net/forums/ssi.php?a=lasttopics' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site97/fst/var/www/html/index.php on line 65
Thanks for any help.