cybervolkan Posted March 9, 2010 Share Posted March 9, 2010 Hello, I am trying to create a ustom registrar module for my registrar. I have a console application which outputs raw text for actions like: /opt/apibin GetNameservers example.com ns1.ni.net.tr ns2.ni.net.tr I have tried to implement this command line tool to customregistrar dev kit template like this. function custom_GetNameservers($params) { $username = $params["Username"]; $password = $params["Password"]; $testmode = $params["TestMode"]; $tld = $params["tld"]; $sld = $params["sld"]; # Put your code to get the nameservers here and return the values below $cmd = '/opt/apibin GetNameservers '.$params["domain"]; $output = system($cmd); $out = explode(" ", $output); $values["ns1"] = $out[0]; $values["ns2"] = $out[1]; $values["ns3"] = $out[2]; $values["ns4"] = $out[3]; # If error, return the error message in the value below $values["error"] = $output; return $values; } But when I call the page , it stucks at getnameservers action. Can you check the code for me please ? Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted March 11, 2010 Share Posted March 11, 2010 remember this: http://forum.whmcs.com/showthread.php?t=26225&highlight=display_errors (and maybe this: http://de.php.net/manual/de/function.system.php) 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.