The question was actually a silly issue handling the authentication(the key was wrong) so basically that's why I didn't receive any response . thank you and sorry for all the trouble . I would vote to delete the question.
2
-
@Jan1337z I have error_reporting("E_ALL & ~E_NOTICE") as can be seen in the code. Isn't that enough ?Doing Things– Doing Things2013-03-24 00:37:21 +00:00Commented Mar 24, 2013 at 0:37
-
@Jan1337z in php.ini i have set ; display_errors ; Default Value: On ; Development Value: On ; Production Value: OnDoing Things– Doing Things2013-03-24 00:38:09 +00:00Commented Mar 24, 2013 at 0:38
Add a comment
|
3 Answers
error_reporting takes PHP constants E_ALL, etc. To turn on errors, use:
error_reporting(E_ALL), not "E_ALL"
Also, you are setting all the options on $ch, which should be a reference returned from curl_init(). Since this is missing, nothing is happening. If you modify the code to the following, you should at least see some result.
public function theCurl($url, $postFields){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
...
Also, as mentioned in another answer, you need to create a new dnsClass.
$c = new dnsClass();
$c->createZone($domain);
print_r($c);
5 Comments
Doing Things
thanks a lot ... indeed it seems I forgot to define $ch .. however it still behaves the same( no response, no error). any idea what should I set to see the errors or at least why is still not working. It's quite hard to find why is not working without error report .
chrisn
I have amended the answer to explain why error_reporting was not working as expected, and also to correct an error regarding your creation of the dnsClass
Doing Things
thanks a lot for the detailed answer. I set error_reporting(E_ALL) and also added the resource $ch = curl_init(); but unfortunately still is not working and I don't receive any error back .
chrisn
You can try to
ini_set('display_errors', '1'); after calling error_reporting(E_ALL); just to be sure that it's displayingDoing Things
added that as well. still no change :(