Directadmin Api

Gestart doorShahiem5 reacties70 weergaven

6 berichten · pagina 1 van 1

Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hi,

Ik ben bezig met Directadmin api, maar hij wilt geen subdomein toevoegen. Hoe kan dit?

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]httpsocket.php[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$sock[/COLOR] [COLOR= #007700]= new[/COLOR] HTTPSocket[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$sock[/COLOR][COLOR= #007700]->[/COLOR]connect[COLOR= #007700]([/COLOR][COLOR= #DD0000]***.21.***[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]2222[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$sock[/COLOR][COLOR= #007700]->[/COLOR]set_login[COLOR= #007700]([/COLOR][COLOR= #DD0000]"****"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"****"[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$sock[/COLOR][COLOR= #007700]->[/COLOR]set_method[COLOR= #007700]([/COLOR][COLOR= #DD0000]POST[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$sock[/COLOR][COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]/CMD_SUBDOMAIN[/COLOR][COLOR= #007700],[/COLOR]
    [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
        [COLOR= #DD0000]action[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]create[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]domain[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]horcruxes.net[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]subdomain[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]hallo[/COLOR]
    [COLOR= #007700]));[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$sock[/COLOR][COLOR= #007700]->[/COLOR]fetch_body[COLOR= #007700]();[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$result[/COLOR][COLOR= #007700];[/COLOR]

?>


Hij is wel gewoon ingelogd, maar hij voegt niks toe.

Alvast bedankt

Gegroet,
Shahiem
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
http://directadmin.com/api.html
Create Subdomain
Function    Used to create a subdomain for a given domain
Command    CMD_API_SUBDOMAINS
Method    GET or POST
Success Returns    error=0 and url encoded String
Failure Returns    error=1 and url encoded String
Form values:
Name    Value
domain    the domain to be shown eg: domain.com
action    create
subdomain    the name of the subdomain to be created


misschien daarheen sturen?
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nu lukt het maar dan krijg ik dit:

The request youve made cannot be executed because it does not exist in your authority level
0
Berichten
1.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
one2xs heeft het dan geblokkeerd denk ik, je kan dan beter een ticket maken.
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik ben niet gehost bij one2xs emo
0
Tgrm

Lid

Berichten
2.133
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Rohimma schreef:
Je hoster heeft het dan geblokkeerd denk ik, je kan dan beter een ticket maken.
Shahiem schreef:
Ik ben niet gehost bij one2xs emo
Zo beter? biggrin
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren