Skip to main content
Help Center
The GoDaddy Community will undergo maintenance starting on Tuesday, August 3rd at 3pm PST / 6pm EST. Learn more
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
smarthyve
New

PHP cURL not working on my Deluxe hosting account

PHP cURL not working on my Deluxe hosting account works on other hosting but not here this is my function function useHTTPGet($url, $username, $apikey, $flash, $sendername, $messagetext, $recipients) { $query_str = http_build_query(array('username' => $username, 'apikey' => $apikey, 'sender' => $sendername, 'messagetext' => $messagetext, 'flash' => $flash, 'recipients' => $recipients)); // return file_get_contents("{$url}?{$query_str}"); $ch = curl_init("{$url}?{$query_str}"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); $data = curl_exec($ch); curl_close($ch); return $data; }

1 REPLY 1
GaryA
Moderator

Hi @smarthyve, thanks for posting.

I'm not familiar enough with curl to say if there's an issue with the script. Feel free to follow up with some more details and the error message you are seeing, and perhaps a member of the community will be able to offer some suggestions.

Otherwise, you may want to contact Support to have them test curl on your account.

^Gary

Gary - GoDaddy | Community Moderator
24/7 Support | Check System Status