Yeap, both:
sudo -u php ls /path/to/php/file.php
and
sudo -u php cat /path/to/php/file.php
Work. However, took a peak at the error log and found this:
2012/07/25 23:05:12 [error] 1040#0: *1 FastCGI sent in stderr: "Access to the script '/srv/www/domains/app.mydomain.com/' has been denied (see security.limit_extensions)" while reading response header from upstream, client: XXX.XXX.XXX.91, server: app.mydomain.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "app.mydomain.com"
Any idea what that means?