I have a php file test.php
#!/bin/php <?php echo "test"; ?>
This file owned by root and its permissions are these
so 'others' can execute, but cannot read.
When logged in as other user than root and trying to run this file from the command line
Got the following error
Could not open input file: test.php
If given +r permission it works.
I thought that only execute permission was needed.
Does a PHP file need read permission to 'others' to be executed in command line?
Note: using Ubuntu 10.04 LTS and PHP 5.3.2