Jump to content

Loading from External site


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...