EHCP API1 error
Submitted by robind99 on Sun, 03/29/2015 - 17:49
In my EHCP Directory are demo api's. But when i try to open api1.php (/api/api1.php) this error while appear:
connectTodb(); # fill config.php with db user/pass for things to work.. $app->activeuser=$panelusername; $ret=$app->addDomainDirectToThisPaneluser($domainname,$selfftp); if($ret){ echo "Success"; } else { echo $app->output; } echo "($ret)"; ?>
Is therefor a solution?
Forums:
ehcpdeveloper
Mon, 03/30/2015 - 12:37
Permalink
about api error
What is error ? you see php code ? then, there is something in your php configuration in your apache ... how do you access this file? what is url ?
robind99
Mon, 03/30/2015 - 20:42
Permalink
I access this file from the
I access this file from the url: (MY_EXTERNAL_SERVER_IP)/ehcp/api/api1.php. Then I get this error on the webpage (MY_EXTERNAL_SERVER_IP)/ehcp/api/api1.php:
connectTodb(); # fill config.php with db user/pass for things to work.. $app->activeuser=$panelusername; $ret=$app->addDomainDirectToThisPaneluser($domainname,$selfftp); if($ret){ echo "Success"; } else { echo $app->output; } echo "($ret)"; ?>
robind99
Mon, 03/30/2015 - 20:55
Permalink
Solved
The problem is <?, I changed it to <?php. Now it works!