Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Use VBS in PHP (Win32) |
|
Author |
|
KimSDK
Joined: 19 Mar 2007 Posts: 2
|
Posted: Mon 19 Mar '07 12:38 Post subject: Use VBS in PHP (Win32) |
|
|
insteed of create at vbs file for every domain, can the script be change to php, like setupdom.php?dom=testzone.com the setup the domain ???
here is the vbs script
Set SDNSConn=CreateObject("SDNSAPI.Connection")
SDNSConn.Init "127.0.0.1",8053,""
Set Zone=SDNSConn.CreateZone("testzone.com", "ns1.dnsserver.net", "hostmaster@nsserver.net")
Zone.Records.Add "ns1.testzone.com", "A", "1.1.1.1"
Zone.Records.Add "testzone.com", "NS", "ns2.nsserver.net"
Zone.Records.Add "ns2.testzone.com", "A", "2.2.2.2"
Zone.Records.Add "www.testzone.com", "A", "3.3.3.3"
Zone.Records.Add "testzone.com", "MX", "10", "mail.testzone.com"
Zone.Records.Add "mail.testzone.com", "A", "4.4.4.4"
SDNSConn.UpdateZone (Zone) |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7355 Location: Germany, Next to Hamburg
|
|
Back to top |
|
KimSDK
Joined: 19 Mar 2007 Posts: 2
|
Posted: Mon 19 Mar '07 17:02 Post subject: |
|
|
I am total lost with COM API and vbs, it was a sample i found writen in VB.
plz help on how to get it to work |
|
Back to top |
|
|
|
|
|
|