0

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 ? Commented Mar 24, 2013 at 0:37
  • @Jan1337z in php.ini i have set ; display_errors ; Default Value: On ; Development Value: On ; Production Value: On Commented Mar 24, 2013 at 0:38

3 Answers 3

1

Try:

$c = new dnsClass();
$zone = $c->createZone($domain);
print_r($zone);
Sign up to request clarification or add additional context in comments.

Comments

0

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

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 .
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
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 .
You can try to ini_set('display_errors', '1'); after calling error_reporting(E_ALL); just to be sure that it's displaying
added that as well. still no change :(
0

Take a look on krumo(), it's very good for debugging.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.