spfoonnewb Posted January 20, 2007 Share Posted January 20, 2007 Is there anyway to take this Curl script, and instead of fetching the page, make it search for a specific string within a link on the page, and return the value?[code]<?phploc = "yahoo.com"$ch = curl_init("http://$loc");$fp = fopen("home.txt", "w");curl_setopt($ch, CURLOPT_FILE, $fp);curl_setopt($ch, CURLOPT_HEADER, 0);curl_exec($ch);curl_close($ch);fclose($fp);?> [/code] Link to comment https://forums.phpfreaks.com/topic/34994-curl/ Share on other sites More sharing options...
fert Posted January 20, 2007 Share Posted January 20, 2007 yes it is possiblehttp://us2.php.net/manual/en/function.preg-match.php Link to comment https://forums.phpfreaks.com/topic/34994-curl/#findComment-165037 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.