0

i have the list of http in txt separately by \n I want by php curl every page and search specify string

the specifc string is :

http://www.....com/xyz/...png or .gif


$ch = curl_init("ARRAY of page from txt????");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$text = curl_exec($ch);
$test = strpos($text, "HOW CREATE THE SPECIFIC STRING???");
if ($test==false)
{
    echo $test;
}
else
{
    echo "no exist";
}
4

2 に答える 2

0

次のように URL を爆発させます: $urls = expand ('\n', urlstring)

これで、URL の配列をループできます。

于 2013-10-23T22:18:28.750 に答える