Update network.php

php script that contains some network and system functions and tools.works on cli , not completed.