Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Stig Sæther Bakken
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 [[EMAIL PROTECTED]] Yeah, I agree. However, it might make things a bit muddled for people using it as cgi? How would PHP tell if the

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Zeev Suraski
At 17:51 07-09-01, Boian Bonev wrote: +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++. We no longer have a C++ scanner.

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Andrei Zmievski
On Fri, 07 Sep 2001, Stig Sæther Bakken wrote: 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. How about we have a separate sapi backend that really does all this stuff properly without

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Boian Bonev
simultaneous building of both cgi-sapi and another one? b. - Original Message - From: Andrei Zmievski [EMAIL PROTECTED] To: Stig Sæther Bakken [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 07, 2001 6:00 PM Subject: Re: [PHP-DEV] Better shell scripting On Fri

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Brian Moon
]; [EMAIL PROTECTED]; Stig Sæther Bakken [EMAIL PROTECTED]; Zeev Suraski [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, September 07, 2001 10:11 AM Subject: Re: [PHP-DEV] Better shell scripting sure it will be ok. but this is change in zend, not php. to make this working zend people must

Re: [PHP-DEV] Better shell scripting

2001-09-07 Thread Andrei Zmievski
On Fri, 07 Sep 2001, Boian Bonev wrote: i can see just one reason - most people use the same php binary both for cgi and shell scripting. if this change is to be introduced in php then at least three builds will be performed - for shell, cgi and web server module. btw what happened with the