making a cpanel 3rd party add-on problem

paulgfx

Registered
Mar 9, 2006
4
0
151
Hi.
I wish to make a cpanel addon. For now, the php code is executed, but I want to call cpanel "api" like this inside php file:
$x="<cpanel Park="countaddons()">";
print($x);
Instead of getting the result, I get inside $x the "<cpanel Park=.. .." text.
Please tell me how can I call cpanel functions from php and why in this case it doesnt return the result.
Thank you very much.

Paul
 

kosmo

Well-Known Member
Verifed Vendor
Aug 12, 2001
403
0
316
All over Europe
You need to call your php script through the cpanel ports (2ß82, 2083) in order for the tags to be parsed.

kosmo
 

paulgfx

Registered
Mar 9, 2006
4
0
151
Thanks.
There is an example addon or some documentation (I searched but w/o success)?

Paul
 

tokerala

Registered
Mar 14, 2006
2
0
151
php API

hi firnds,

i am sure some of you can help me in a similar case, i need to create sub domain redirections by my PHP script, please suggest