Re: [PHP] bad interpreter: No such file or directory

2004-04-23 Thread Curt Zirzow
* 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

Re: [PHP] bad interpreter: No such file or directory

2004-04-23 Thread CSN
[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

[PHP] bad interpreter: No such file or directory

2004-04-23 Thread CSN
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