Thodoris wrote:
Hi gang,
I am trying to run a script from cli which goes like this:
#!/usr/bin/php
The error I get is this:
/usr/bin/php^M: bad interpreter: Permission denied
the php binary is indeed in this location and when I run the same script
like this:
php -f test.php
it works
On Fri, Mar 13, 2009 at 10:23, Thodoris wrote:
[snip!]
Both commands return the same path.
and that path, I'll presume, is the same you have set in the
script, right? Please offer as much information as you can with each
email to speed up the troubleshooting process. ;-P
Thodoris wrote:
> Hi gang,
>I am trying to run a script from cli which goes like this:
>
> #!/usr/bin/php
> passthru("printenv");
> ?>
>
> The error I get is this:
> /usr/bin/php^M: bad interpreter: Permission denied
>
> the php binary is indeed in this location and when I run the same scri
On Fri, Mar 13, 2009 at 10:23, Thodoris wrote:
[snip!]
>
> Both commands return the same path.
and that path, I'll presume, is the same you have set in the
script, right? Please offer as much information as you can with each
email to speed up the troubleshooting process. ;-P
What'
Note the ^M --- then use dos2unix from the command line on the
Linux box to fix the line endings on that file. The ^M character is a
sure-fire sign of a Windows-saved file.
Already tried that but I still get the same error (without the ^M of
course) so I think it's not the line termi
On Fri, Mar 13, 2009 at 10:10, Thodoris wrote:
> Hi gang,
> I am trying to run a script from cli which goes like this:
>
> #!/usr/bin/php
> passthru("printenv");
> ?>
>
> The error I get is this:
> /usr/bin/php^M: bad interpreter: Permission denied
Note the ^M --- then use dos2unix from th
Hi gang,
I am trying to run a script from cli which goes like this:
#!/usr/bin/php
The error I get is this:
/usr/bin/php^M: bad interpreter: Permission denied
the php binary is indeed in this location and when I run the same script
like this:
php -f test.php
it works properly. I will hav
7 matches
Mail list logo