Weird Results from Curl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm curling a site to process some data, all well and good but the results are baffling...

$result = curl_exec($ch);
curl_close($ch);
echo "<HR>".gettype ($result);

Of course that's not all the code, but the results contain:
---------
0 11
0 1
1 1
1 11
5 An Error Has Occurred During Processing.
Error: An Error occured .
A message has been sent to the System Administrator with the details of the problem you have encountered. 1
----

What I can't seem to figure out is what the result type actually is and how to pull just the first piece (0,1,etc) out of the "0 11" that gets returned.

I have tried to do a strlen conversion, that failed.  I've tried bool converting but it doesn't come across right either.

Any ideas?

Thanks!
Wolf

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux