Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EHCP API1 error
#1
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?



Restored from old drupal forum, for user uid:27631 username:robind99
You may reset your password to access your new account here.
Reply
#2
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 ?



Restored from old drupal forum, for user uid:27631 username:robind99
You may reset your password to access your new account here.
Reply
#3
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:

<code>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)"; ?></code>



Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Reply
#4
The problem is <?, I changed it to <?php. Now it works!

Restored from old drupal forum, for user uid:27631 username:robind99
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping