PHP : Reading text files ?
Hi
I need a help.
This is the sample of Nginx web server configiraton.
Code:
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
include fastcgi_params;
}
I want to write a php script for getting the value of "root" , "fastcgi_pass" and "fastcgi_index" from the file.
There may be hundreds of such blocks in the file and I want to collect all.
Is that possible with php ? and how ?
Harris