Jump to content

Unix to Windows Server translation?


squallsquall

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.