EHCP API1 error

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?

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 ?

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

The problem is <?, I changed it to <?php. Now it works!