Jump to content

Locating and Copying specific information from a websites Source Code


Styles2304

Recommended Posts

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.

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);
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.