squallsquall Posted November 5, 2008 Share Posted November 5, 2008 Hi, Can anyone help me translate (if possible) this piece of code written for Unix to code written for Windows Server: exec('host -a '.$domain.' | grep "not found: 3(NXDOMAIN)"') == ''; The code is a part of a program to check for available domains. Thanks a lot! Link to comment https://forums.phpfreaks.com/topic/131545-unix-to-windows-server-translation/ Share on other sites More sharing options...
predator12341 Posted November 6, 2008 Share Posted November 6, 2008 it is calling host -a (that is the program) it passes $domain to it for the domain then it does a search of $domain and if not found is there it returns the records to show you the avaliable domains. unless you can get a windows version of the host app you cant get it on windows server. Hope this has helped Regards Mark Link to comment https://forums.phpfreaks.com/topic/131545-unix-to-windows-server-translation/#findComment-683557 Share on other sites More sharing options...
squallsquall Posted November 7, 2008 Author Share Posted November 7, 2008 Ah, so "host" is a separate application already on the server? It's not something that's always available? Thanks! Link to comment https://forums.phpfreaks.com/topic/131545-unix-to-windows-server-translation/#findComment-684577 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.