Jump to content

Curl


spfoonnewb

Recommended Posts

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]
<?php

loc = "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

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.