kewley 0 Posted January 24, 2007 Report Share Posted January 24, 2007 <?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. Quote Link to post Share on other sites
vijay 0 Posted January 24, 2007 Report Share Posted January 24, 2007 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.