I have a script (file1.php)in php in linux
#!/usr/bin/php -q
<?php
echo "hello world" ?>
when i run in linux (redhat @ bash shell)
> php file1.php
it works. my php is in /usr/bin/php and its version is 5.3.3)
but when i run
./file1.php
it says
'./file1.php' not present.
my application requires this ('./file1.php') model to work
on my other machine this file works with ('./file1.php') model
why is it so , is there any way to fix this ..
- **/usr/bin/php -v works well
- file permission (file1.php): -rwxr-xr-x 1 root root**
./file.php, it must be executable.