im trying to create a script that creates email accounts through my cpanel. it seems that the following script dose not work.
[code=php]<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ‘user:pass@http:boduashi.org:2082/frontend/hostmonster/mail/doaddpop.html’);
curl_setopt($ch, CURLOPT_USERPWD, ‘user:pass’);
curl_setopt ($ch, CURLOPT_POST, 1);
// SET POST PARAMETERS : FORM VALUES FOR EACH FIELD
curl_setopt ($ch, CURLOPT_POSTFIELDS, ’email=dada&domain=boduashi.org&password=1231"a=0′);
// IMITATE CLASSIC BROWSER’S BEHAVIOUR : HANDLE COOKIES
curl_setopt ($ch, CURLOPT_COOKIEJAR, ‘cookie.txt’);
# Setting CURLOPT_RETURNTRANSFER variable to 1 will force cURL
# not to print out the results of its query.
# Instead, it will return the results as a string return value
# from curl_exec() instead of the usual true/false.
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
// EXECUTE 1st REQUEST (FORM LOGIN)
$store = curl_exec ($ch);
// CLOSE CURL
curl_close ($ch);
?>
please help