* Thus wrote CSN ([EMAIL PROTECTED]):
> I have PHP scripts that start off as so:
>
> #!/usr/local/bin/php
> // php code ...
> ?>
>
> They're chmod a+x. "which php" returns
> "/usr/local/bin/php". Used to work just fine using
> "./script.php". Now, that gives this error: "bad
> interpreter: No su
[EMAIL PROTECTED] That was it (fixed with dos2unix).
Thanks
--- "Roger B.A. Klorese" <[EMAIL PROTECTED]> wrote:
> CSN wrote:
>
> >Anybody know what the problem is?
> >
> >
>
>
> Are you sure the files have not been edited with a
> Windows editor and
> therefore have CR-LF line endings? I
I have PHP scripts that start off as so:
#!/usr/local/bin/php
They're chmod a+x. "which php" returns
"/usr/local/bin/php". Used to work just fine using
"./script.php". Now, that gives this error: "bad
interpreter: No such file or directory". However, "php
script.php" still executes the script fi
3 matches
Mail list logo