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. 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); ?> 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! 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
Archived
This topic is now archived and is closed to further replies.