|
Posted by Schraalhans Keukenmeester on 06/13/07 04:21
At Tue, 12 Jun 2007 19:43:59 -0700, shotokan99 let h(is|er) monkeys type:
> actually that's the major problem..because my hosting co. wont allow
> me or won't edit the php.ini file. the main reason is we are on a
> shared server. regarding curl i did try it using this code:
>
> $curl_handle=curl_init();
> curl_setopt($curl_handle,CURLOPT_URL,'$xurl');
> curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
> curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
> $buffer = curl_exec($curl_handle);
> curl_close($curl_handle);
> if (empty($buffer))
> {
> print "Sorry - no content.<p>";
> }
> else
> {
> echo "<h1>HERE IS CONTENT:</h1><hr> $buffer";
> }
>
> still faild ;-)
> is there something wrong with my code or simply it doesnt support curl
> as well?
> is there another workaround to attain my goal? some folks suggested i
> try snoopy.
If they've disabled all kinds of stuff, don't offer cURL suppport (quite
commonly used I'd say) should you not consider switching hosts?
Don't know any details about snoopy, can't help you there I'm afraid.
Or is the failure of above code not caused by curl being unavailable?
--
Schraalhans Keukenmeester - schraalhans@the.Spamtrapexample.nl
[Remove the lowercase part of Spamtrap to send me a message]
"strcmp('apples','oranges') < 0"
Navigation:
[Reply to this message]
|