![]() |
Is is possible to include a page.html from another server into a template? I believe I saw codes like that somewhere.
|
I am trying to grab the count on my chat server which is different from vb. the page.html consists of just one line without any <html> or <body> tags and reads the user count well.
Now in my vb template, I placed that code in: <? $fd= fread(fopen("http://chat.server.com/login/count.html", "r"), 100000); if ($fd) echo $code; ?> what is happening, the two instances of $fd are ignored and are not even included in the view source of the page. Is there a place (in global.php for example) that I should place the above without <? ?>, call it $chat and display $chat in template? If so, then how do I define $chat= since $fd already = ? |
I did it, and it works. But placing this in global.php slows things a lot, since at every instance global has to go somewhere to open a file and to read it.
where else could I place it so just that one template could read the info? |
All times are GMT. The time now is 07:33 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|