Playing with Linux Directory in PHP/CGI
===

I want to change a text file that is present in the /etc directory of Linux. My script of php that will be in httpd directory can never access root directory of Linux, that is my understanding regarding php. Firstly, I want to know how can I do it, so that I can think over those particular lines. Secondly! is the CGI is the only solution?

Thanks in advance for your reply.