Re: [SOAP] make genproxy.php easier to use as a command

From: Date: Wed, 25 Jun 2003 21:52:35 +0000
Subject: Re: [SOAP] make genproxy.php easier to use as a command
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-733@lists.php.net to get a copy of this message
If someone installs PHP to an odd location (/opt/php) shouldn't they symlink php to /usr/bin/php or someting? Thats what the PERL folks assume and we all follow. /B ----- Original Message ----- From: "Jesus M. Castagnetto" <jcastagnetto@yahoo.com> To: "Jonathan Schilling" <jls@sco.com>; "LIMBOURG Arnaud" <arnaud.limbourg.prestataire@cegetel.fr>; <soap@lists.php.net> Sent: Wednesday, June 25, 2003 14:40 Subject: RE: [SOAP] make genproxy.php easier to use as a command > Jonathan > > The PHP CGI needs the -q to avoid producing the HTTP headers, the PHP CLI does > not. > > For more details look at the documentation at: > > http://www.php.net/manual/en/features.commandline.php > > You seem to be using the PHP CGI and mistaking it for the CLI. The CLI will > work as Arnaud mentions. > > As for using the '#!', not everyone has php in /usr/bin or /usr/local/bin, some > have it in /opt/bin, or other places, so your solution will break, unless you > have some foolproof method to figure out the right interpreter to use. Might be > doable using a secondary shell script. > > --- Jonathan Schilling <jls@sco.com> wrote: > > > From arnaud.limbourg.prestataire@cegetel.fr Wed Jun 25 10:23:17 2003 > > > > > > > For those non-Unix-Linux platforms that don't support the > > > > "#!" syntax, > > > > they can modify it to whatever they need ... but making these changes > > > > will get the most common case of the tool's usage to work better. > > > > > > Using the cli makes more sense here. > > > > > > php is usually in your path so using > > > > > > php or php-cli file.php (depending on your install) is not too cumbersome i > > > would think. > > > > Arnaud, > > > > I don't quite understand your response. It's the PHP CLI that I'm > > talking about. It's invoked whether you do ".../genproxy.php" or > > "php .../genproxy.php". > > > > It's just that if you do "php .../genproxy.php" and forget to give > > the -q option, you will get HTTP cruft out if you are writing a > > PHP CLI web services application (the cruft comes out when you are > > running the application, not just when you are running genproxy). > > > > But if we add "#! /usr/bin/php -q" to the top of genproxy.php, then > > the cruft won't come out, no matter how genproxy.php is invoked. > > > > Jonathan Schilling > > > > > > -- > > PHP Soap Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > ===== > -- > Jesus M. Castagnetto (jcastagnetto@yahoo.com) > Research: http://metallo.scripps.edu/ > Personal: http://www.castagnetto.org/ > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > -- > PHP Soap Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.soap (#733) next »