Re: Using PHP to change Linux IP address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AndyO wrote:
I'm working on a project where an engineer/user has to be able to log in to a device locally and change the IP address. The OS is Linux.

We want to make the interface simple and so we thought of using a webpage that allows the engineer/user to change the address without having to use the Linux tools netconfig or ifconfig.

Is it possible to use a PHP script to change the IP address?


PHP (the webserver) would have to have permission to edit the ifcfg-eth0 (eth1, eth2, etc) file, and have permission to restart the network.


--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@xxxxxxxxxxxx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux