Re: [PHP] Three quickies anyone?

2006-03-27 Thread David Tulloh
Ryan A wrote: > ... > 1. > I start my CLI scripts with: > #!/usr/local/etc/php > > as thats the path on my machine... the problem is some of these scripts will > have to be installed on clients machines by them... any easy way for them > to find out whats the path PHP is installed on their machin

Re: [PHP] Three quickies anyone?

2006-03-27 Thread Ryan A
> The canonical way: > > #!/usr/bin/env php Thanks Kevin, > Well, if you use the "canonical way" I describe above, one problem > I foresee is that the cgi-bin directory is hardly ever in $PATH. . . Will keep that in mind.. Thanks, Ryan -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Three quickies anyone?

2006-03-27 Thread Barry
Ryan A wrote: Have them go to the command line and type 'which php' and it will return the path. The clients will probably not even understand what "command line" means, I was thinking of doing something like this: ask the client to enter the path to php on his server, if he does not know th

Re: [PHP] Three quickies anyone?

2006-03-27 Thread Kevin Kinsey
Ryan A wrote: Hey, I am new to CLI and using PHP to run shell but need to know it so am getting my feet wet, hopefully with your help :-) Now when I said three quickies, I mean three PHP RELATED quickies of course...if you thought anything otherwise... you have a wicked mind. Here goes: 1. I

RE: [PHP] Three quickies anyone?

2006-03-27 Thread Ryan A
Hey Jay, > [snip] > is it the same as $_SERVER["include_path"] > [/snip] > > Have them go to the command line and type 'which php' and it will > return the path. The clients will probably not even understand what "command line" means, I was thinking of doing something like this: ask the cl

RE: [PHP] Three quickies anyone?

2006-03-27 Thread Jay Blanchard
[snip] 1. I start my CLI scripts with: #!/usr/local/etc/php as thats the path on my machine... the problem is some of these scripts will have to be installed on clients machines by them... any easy way for them to find out whats the path PHP is installed on their machine? (this q is more of a dou