snip>>
You gotta own the file or be root to do things like this. It's a Unix /
Linux thing not a PHP thing - PHP is just following the rules of Unix /
Linux.
Sound like he wants to do it via his script which I assume would be
the user that the server runs under. Apache maybe?
In *.nix environments, the application 'httpd' (Apache) runs with some
user credentials - usually 'nobody', 'apache' or something similar.
You need to set the permissions so that the user 'nobody' (or 'apache'
or whatever user the httpd process is running under) will be allowed
to read them.
My "/etc/httpd/conf/httpd.conf" file, on line 251 lists:
User Apache
Group Apache
Don't change those, change the files permissions.
maybe chmod 755 /file/in/question depending on your security needs.
Man chmod
Man chown
http://httpd.apache.org/docs-project/