Results 1 to 15 of 15
Thread: help with cURL
Jan 18, 2012, 11:14 #1
- Join Date
- May 2010
- Okemos, Michigan, USA
- 1 Post(s)
- 0 Thread(s)
help with cURL
I was wondering and hoping someone could help me figure out what cURL package to install. Well, first, I have a script that I am running in part of an app that I built with PHP and that script uses cURL. My hosting provider says he has installed cURL because he can use it from the command-line, yet I get the error that the script made if cURL is not installed.
Here is the part of the script that checks and uses cURL:
// start curl up.
// if no curl, hit an error.
$this->error('CURL is not installed on this hosting account. Please contact your hosting provider and ask for it to be enabled.',true);
$this->ch = curl_init();
curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
@curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($this->ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; PHP Website Search)");
curl_setopt($this->ch, CURLOPT_HEADER, 0);
But, as I mentioned before, my hosting provider said that cURL is installed. He also said, all of the libcurl packages are installed". He said that after I suggested that he installed those after finding this and this via a quick Google Search for PHP cURL Package.
Does anyone know or have any suggestions on what cURL package I need to tell my hosting provide to install to get the PHP script working? (debian squeeze package)
I would really appreciate any and all suggestions!
Thanks in Advance & Best Regards,