Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: urgent string
03-07-2007, 05:32 PM #1
- Join Date
- Mar 2007
- Thanked 0 Times in 0 Posts
I am trying to read the content of url into string using following code
curl_setopt($ch, CURLOPT_URL, $new_url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$store_content = curl_exec ($ch);
When i am trying to print the string using
print("content is: ".$store_content);
it is printing the whole html page in the browser but when i try to take length of the content using
it is returning only 256.
and when i try to fetch index of particular string say 'Description' from the content using
$description_start = ' Description';
it is returning false. But the string is present in the page and i have seen it physically.
Can anybody help me out and tell me where i am going wrong?
Thanks in advance.