Re: Better shell scripting

From: Date: Fri, 07 Sep 2001 15:11:34 +0000
Subject: Re: Better shell scripting
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-65361@lists.php.net to get a copy of this message
sure it will be ok. but this is change in zend, not php. to make this working zend people must export a call/option/global/something to change the flex scanner initial state. and a question of design - shall this be a permanent or first execute change? i mean if a script run with -S includes another php script, then what shall be the initial state for the included script? to Zeev: then why not remove 1/3 of the code ifdefed __cpluplus? b. ----- Original Message ----- From: "Brian Moon" <brianm@dealnews.com> To: "Boian Bonev" <boian@bonev.com>; <mikeheald@streamgroup.co.uk>; "Stig Sæther Bakken" <ssb@alltheweb.com> Cc: <php-dev@lists.php.net> Sent: Friday, September 07, 2001 5:41 PM Subject: Re: [PHP-DEV] Better shell scripting > We could make this part of the -S option that I have just submitted a patch > for. > > Brian Moon > ------------------------------------------ > dealnews.com, Inc. > Makers of dealnews & dealmac > http://dealnews.com/ | > http://dealmac.com/ > > > ----- Original Message ----- > From: "Boian Bonev" <boian@bonev.com> > To: <mikeheald@streamgroup.co.uk>; "Stig Sæther Bakken" <ssb@alltheweb.com> > Cc: <php-dev@lists.php.net> > Sent: Friday, September 07, 2001 9:51 AM > Subject: Re: [PHP-DEV] Better shell scripting > > > > +1 :)) > > > > and a > > > > #!/bin/php -p > > echo "some string here\n"; > > ?>some html here ;))) > > <? echo 'some more php';?> > > > > although this requires a patch in Zend/zend_language_scanner.l line 279 > :))) > > for plain c, and i didn't look where for c++. > > > > b. > > ----- Original Message ----- > > From: "Stig Sæther Bakken" <ssb@alltheweb.com> > > To: <mikeheald@streamgroup.co.uk> > > Cc: <php-dev@lists.php.net> > > Sent: Friday, September 07, 2001 12:28 PM > > Subject: Re: [PHP-DEV] Better shell scripting > > > > > > > What if we introduced a -p option to PHP that starts the Zend parser > > > in "PHP mode"? For any other files (include/require), it starts in > > > "HTML mode" though. > > > > > > - Stig > > > > > > [<mikeheald@streamgroup.co.uk>] > > > > Yeah, I agree. However, it might make things a bit muddled > > > > for people using it as cgi? How would PHP tell if the following > > > > was PHP code or if its supposed to be echoed to the web browser? > > > > > > > > I would rather see a -shell option which does what you describe. > > > > > > > > Mike (long-time listener, first-time poster ;) > > > > > > > > >>>>>>>>>>>>>>>>>> > > > > >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< > > > > > > > > On 9/7/01, 11:27:30 AM, Edin Kadribasic wrote > > > > regarding Re: [PHP-DEV] patch to make for better shell scripting: > > > > > > > > > > > > > Almost forgot. IMO -q swich should make starting <?php optional so > > > > instead > > > > > of writing: > > > > > > > > > #!/usr/bin/php -q > > > > > <?php > > > > > print "Hello, world!\n"; > > > > > ?> > > > > > > > > > I could simply say: > > > > > > > > > #!/usr/bin/php -q > > > > > print "Hello, world!\n"; > > > > > > > > > > > > > > > > > Edin > > > > > > > > > > > > > -- > > > > > PHP Development Mailing List <q6B± > > > > > •æzü33îzaÄhttp://www.php.net/> > > > > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > > > > For additional commands, e-mail: php-dev-help@lists.php.net > > > > > To contact the list administrators, e-mail: > > php-list-admin@lists.php.net > > > > > > > > > > > > > > > > -- > > > > PHP Development Mailing List <http://www.php.net/_/È5  > > > > ÀA\w{[‰Üý> > > > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > > > For additional commands, e-mail: php-dev-help@lists.php.net > > > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > > > > -- > > > Stig Sæther Bakken <ssb@alltheweb.com> > > > Fast Search & Transfer ASA, Trondheim, Norway > > > > > > -- > > > PHP Development Mailing List > > > <http://www.php.net/> > > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-dev-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > For additional commands, e-mail: php-dev-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#65361) next »