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. ??? Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/67768-can-php-do-that/#findComment-340440 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.