NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP CLI / Cygwin

Hans Zaunere zaunere at yahoo.com
Tue May 20 15:30:39 EDT 2003


--- Jon Baer <jonbaer at jonbaer.net> wrote:
> kinda retarded question, but how do you get php to interpret directly on
> the
> command line within the script itself?
> 
> #!/cygdrive/c/php/cli/php -q
> 
> <?php
>     // code
> ?>

Not sure if I understand, but try getting rid of that empty line right after
the first hash-bang line.  Other than that, make sure the script itself is
marked as +x and that it has UNIX line endings.

H

> 
> seems to have no effect ...
> 
> - jon
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 




More information about the talk mailing list