Customizing SMF > SMF Coding Discussion
SSI User Online Error
ROGUE-Master:
I use SSI to list the users online on my news page, but it seems to have started to come up with an error. News page is here: http://www.clanrogue.net/news.php
The error says:
--- Code: ---Warning: main(): stream does not support seeking in /home/virtual/site20/fst/var/www/html/news.php on line 17
--- End code ---
And line 17 says:
--- Code: ---include("http://www.clanrogue.net/SMF/SSI.php?ssi_function=logOnline");
--- End code ---
Suggestions?
Grudge:
You can't use URL's in the path. It has to be.. for example
include('./SMF/SSI.php?ssi_function=logOnline');
Ben_S:
Sounds like an old php bug, stick an @ in front of your include ie @includ...... That will hide the error.
[Unknown]:
--- Quote from: Grudge on September 04, 2004, 06:59:41 PM ---You can't use URL's in the path. It has to be.. for example
include('./SMF/SSI.php?ssi_function=logOnline');
--- End quote ---
If you use ?ssi_function, you have to use the URL.
Yes, it's a bug in PHP - add the @.
-[Unknown]
Grudge:
--- Quote from: [Unknown] on September 04, 2004, 07:12:27 PM ---
--- Quote from: Grudge on September 04, 2004, 06:59:41 PM ---You can't use URL's in the path. It has to be.. for example
include('./SMF/SSI.php?ssi_function=logOnline');
--- End quote ---
If you use ?ssi_function, you have to use the URL.
--- End quote ---
Ahhh... ok. When doing it this way is the server bright enough to include it itself (internally), or does it bounce around the internet before serving the page up to itself. (ie would a tracert of the include just have a hop to itself, or to the nearest DNS server and back again)
Navigation
[0] Message Index
[#] Next page
Go to full version