PDA

View Full Version : API - Examples in PHP



sizemik
06-26-2003, 02: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, 02: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, 07: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, 09:19 PM
Yeah, that sounds cool too. There's literally tons of ways to do it.

sizemik
06-26-2003, 11:56 PM
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-26-2003, 11:58 PM
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-09-2004, 11:10 PM
Wow, over a year and still not one working code example!
:confused:

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

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

;)

Phi1.

TMC
09-10-2004, 11:39 AM
Thankyou thankyou thankyou !!
:cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool: :cool:

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

Phi1.