glenelkins Posted December 22, 2006 Share Posted December 22, 2006 HiSo after writing a script to create new virtual hosts on Apache. I figured how to reset the host records without reboot with the following command : "ipconfig /renew"Can i run this from php as such? [code]exec("ipconfig /renew"); [/code] Quote Link to comment https://forums.phpfreaks.com/topic/31573-renew-windows-hosts/ Share on other sites More sharing options...
trq Posted December 22, 2006 Share Posted December 22, 2006 What the is ipconfig? Quote Link to comment https://forums.phpfreaks.com/topic/31573-renew-windows-hosts/#findComment-146320 Share on other sites More sharing options...
HuggieBear Posted December 22, 2006 Share Posted December 22, 2006 Yes you can, so long as the application has the permissions set up to allow the user to execute it.You can use [url=http://uk.php.net/manual/en/function.exec.php]exec()[/url], [url=http://uk.php.net/manual/en/function.system.php]system()[/url] or [url=http://uk.php.net/manual/en/function.shell-exec.php]shell_exec()[/url] I believe.RegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/31573-renew-windows-hosts/#findComment-146347 Share on other sites More sharing options...
glenelkins Posted December 22, 2006 Author Share Posted December 22, 2006 Great. I am actually writing a web control panel. To start with for windows OS (apache only). I will post updates as I go along.Currently the system has an admin area to setup hosting accounts. The user can then log in and creat sub domains, or access their FTP. I will soon be adding FTP account creation and a simple file manager. Quote Link to comment https://forums.phpfreaks.com/topic/31573-renew-windows-hosts/#findComment-146357 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.