You are here: Re: php and .htaccess « PHP Programming Language « IT news, forums, messages
Re: php and .htaccess

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация