Was that the version id rembered to change " to ' or not "/
Just tested, works fine, i fixed an error with edit, change to the updated version and should work fine![]()

Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/habboatt/public_html/test/online2.php on line 3
Warning: file(http://www.habbohotel.co.uk/): failed to open stream: Permission denied in /home/habboatt/public_html/test/online2.php on line 3
Current Habbos Online:
i copied the updated script and it didnt work still![]()
Are you sure you can use file() on external pages?
kinda quit.
thats the updated code he posted and i just copied and pasted it tryed it n it dont work
i now get something really weird showing
well look for yaself
www.habboattic.co.uk/test/online2.php
Last edited by -::Mr.Dave::-; 10-04-2006 at 09:00 PM.
Oops i think that explains it, its grabing the wrong line
(plus must work if the first version worked)
I think... its line 72 of the document, im just not sure if i need to counter for the line 0 in php or not "/
<?php
//get page
$lines = file('http://www.habbohotel.co.uk/');
//Get line
$Ndata = $lines['72']; // may be line 71 or 70 - try till one works
//Remove what we dont want
$Ndata = str_replace('<div id="toolbar-habbocount">', '', $Ndata);
$Ndata = str_replace("Habbos online</div>", "", $Ndata);
// Add text and output
echo "Current Habbos Online: ".$Ndata;
?>
Last edited by Mentor; 10-04-2006 at 09:06 PM.
Line 72 for me is
<div id="toolbar-habbocount">8,146 Habbos online</div>
Want to hide these adverts? Register an account for free!