Styles2304 Posted March 20, 2008 Share Posted March 20, 2008 My goal is to make one of those dynamic sig images in php that update my characters status in game and what not. There is no way to retrieve the data directly from the server every time but the data is posted and updated weekly here: http://starwarsgalaxies.station.sony.com/en_US/players/officers.vm?id=66953. So basically, my question is how do I extract just the row from the table where my information is? The rest I've got. Quote Link to comment https://forums.phpfreaks.com/topic/97093-locating-and-copying-specific-information-from-a-websites-source-code/ Share on other sites More sharing options...
sasa Posted March 20, 2008 Share Posted March 20, 2008 try <?php $your_name = 'SecretADC'; $patern = "/<td>$your_name<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td>(.*?)<\/td><td align=\"right\">(.*?)<\/td>/"; $page = file_get_contents('http://starwarsgalaxies.station.sony.com/en_US/players/officers.vm?id=66953'); preg_match($patern,$page,$out); print_r($out); ?> Quote Link to comment https://forums.phpfreaks.com/topic/97093-locating-and-copying-specific-information-from-a-websites-source-code/#findComment-496833 Share on other sites More sharing options...
Styles2304 Posted March 20, 2008 Author Share Posted March 20, 2008 Ah yes, that did it! Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/97093-locating-and-copying-specific-information-from-a-websites-source-code/#findComment-497013 Share on other sites More sharing options...
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.