Jump to content

Loading from External site


kewley

Recommended Posts

<?php$contents = '';$handle = fopen("http://r6vegas.eu.xbox360.gamebattles.com/stats/868.htm","r");$Content = fread($handle, 1000 * 1000);$Content = str_replace(" " , "_" , $Content);echo strip_tags(substr($Content, 3000 , 3010 ));?>

This is supposed to access the site mentioned and then store the code. It is then replaces all spaces with "_" and strips the html tag before searching for a specific character and echoing it. It not working too bad, except for I don't seem to be able to get it to echo any part of the string about about the 2600th character, it just returns black space? Any help would be greatly appreciate, as I have been trying to get this to work for about 2 hours now.

Link to comment
Share on other sites

Hi..First check http://r6vegas.eu.xbox360.gamebattles.com/stats/868.htmand try to see that page weather it's source code lenhth accordingly ur requirement or not..Regards,Vijay

<?php$contents = '';$handle = fopen("http://r6vegas.eu.xbox360.gamebattles.com/stats/868.htm","r");$Content = fread($handle, 1000 * 1000);$Content = str_replace(" " , "_" , $Content);echo strip_tags(substr($Content, 3000 , 3010 ));?>

This is supposed to access the site mentioned and then store the code. It is then replaces all spaces with "_" and strips the html tag before searching for a specific character and echoing it. It not working too bad, except for I don't seem to be able to get it to echo any part of the string about about the 2600th character, it just returns black space? Any help would be greatly appreciate, as I have been trying to get this to work for about 2 hours now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...