satikas Posted September 3, 2007 Share Posted September 3, 2007 Hi! Can i transfer values from another sites PAGE, by using php code? Lets say: At www.sample.com theres written - Pob got 25 points. Now: Could some script automatically check that value (by defining the line i want it to check, in the script before) and trasfer it to shown place on my page? Can it be done? Does it already exsist? Thank You in advanatge. ??? Link to comment https://forums.phpfreaks.com/topic/67768-can-php-do-that/ Share on other sites More sharing options...
trq Posted September 3, 2007 Share Posted September 3, 2007 Yes it can be done. Use file_get_contents to get the page into a string, then use preg_match to seek out and find the part of the string you want. Link to comment https://forums.phpfreaks.com/topic/67768-can-php-do-that/#findComment-340438 Share on other sites More sharing options...
kevingarnett2000 Posted September 3, 2007 Share Posted September 3, 2007 But you must be alert for any possible html changes occured for that particular site, else the regular expression will break Link to comment https://forums.phpfreaks.com/topic/67768-can-php-do-that/#findComment-340440 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.