Hi all i am trying to use strpos( ..) function to find some data in string from a remote page using curl. My curl is working well since i used print $result; and the html page got loaded with in the script . But the scrip never be able to find the "This profile is set to private. " with the following html ( in remote page):
I be happy if some one tell me what i am doing wrong.ThanksCode:<span id="ctl00_Main_ctl00_ctrlMessage">This profile is set to private. This user must add you as a friend to see his/her profile.</span>
part html:PHP Code:
curl_setopt($curl, CURLOPT_URL, 'http://www.myspace.com/' . $_POST['url']);
curl_setopt($curl, CURLOPT_POST, 0);
$result = curl_exec($curl);
$headers = curl_getinfo($curl);
if (strpos($result, 'This profile is set to private.'))
{
echo "found";
}
else
{
echo "Not found";
}
HTML Code:<span id="ctl00_Main_ctl00_ctrlMessage">This profile is set to private. This user must add you as a friend to see his/her profile.</span>


Reply With Quote
