PDA

View Full Version : API - Examples in PHP


sizemik
06-26-2003, 03:01 PM
I was wondering if anyone had an example of a connection to the Direct Admin API written in php

Just to get to the stage where commands are issued

I can't work it out

l0rdphi1
06-26-2003, 03:56 PM
In our custom "Billing Manager" I just make use of DA's support for GET form data. For example - we have a 'Create Account' link for our staff to easily create accounts when a customer signups. It's pretty cool.

However, it would be even cooler to actually plug-in to DA and integrate more with it.. let us know if you get anywhere :D

loopforever
06-26-2003, 08:13 PM
I PHP you can simply use fopen(...) on a URL and it will execute your query. I've done this in my Ensim conversion script and it works fine :).

l0rdphi1
06-26-2003, 10:19 PM
Yeah, that sounds cool too. There's literally tons of ways to do it.

sizemik
06-27-2003, 12:56 AM
Originally posted by loopforever
I PHP you can simply use fopen(...) on a URL and it will execute your query. I've done this in my Ensim conversion script and it works fine :).

could you expand on that? What are you supposed to link to?

sizemik
06-27-2003, 12:58 AM
Originally posted by l0rdphi1
In our custom "Billing Manager" I just make use of DA's support for GET form data. For example - we have a 'Create Account' link for our staff to easily create accounts when a customer signups. It's pretty cool.

However, it would be even cooler to actually plug-in to DA and integrate more with it.. let us know if you get anywhere :D

How do you do that?

TMC
09-10-2004, 12:10 AM
Wow, over a year and still not one working code example!
:confused:

l0rdphi1
09-10-2004, 05:45 AM
Sure you do:

http://www.directadmin.com/forum/showthread.php?s=&threadid=258

;)

Phi1.

TMC
09-10-2004, 12:39 PM
Thankyou thankyou thankyou !!
:cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool:

l0rdphi1
09-10-2004, 02:37 PM
You're welcome :)

Phi1.