Does anyone know if it is possible to actually change an IP address on a system via php? I have been trying different things for days and can't seem to get it to work. I know I can call ifconfig via php via system("ifconfig"); and I have safe mode turned off to make this work. I will eventually put a safe_mode_exec_dir in my php.ini with ifconfig in there but really could use some help writing this first... Basically I want a page where it will first read the current IP values (ip address, netmask, gateway, dns servers), populate the fields where I can change them and then submit the changes back via ifconfig & route commands.
Any help would be GREATLY appreciated.
Thanks!
Chris