Re: option to start in PHP mode

From: Date: Sat, 28 Dec 2002 12:56:20 +0000
Subject: Re: option to start in PHP mode
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-92906@lists.php.net to get a copy of this message
At 10:46 28.12.2002, Andi Gutmans wrote:
At 01:45 AM 12/28/2002 +0100, Marcus Börger wrote:
At 22:40 27.12.2002, Andi Gutmans wrote:
I don't think it's beneficial to PHP to have two modes especially as the cli more you're talking about would support ?> followed by a <?php. So all you're saving is the opening tag. I think any PHP programmer can handle it. Let's keep things similar across the board. Andi
I agree here, too. But when you still want that stuff we can expand CLI by a new switch that executes the script in eval() mode. This way we do not have the problem with the closing "?>" tags mentioned by Andi (i just thought about starting a RFC on this).
Why don't we have the ?> problem? You can also use ?> in eval()'s. Anyway, Rasmus mentioned that a switch already exists although I don't think it's such a great idea due to the previously mentioned reasons. I think all PHP code should be consistent. Andi
Oh i see: I didn't knew you could do "?>" in eval() and hence in -r. So we could simply allow the combination of "-r" and "-f", shall we?
marcus
At 02:11 PM 12/27/2002 -0500, Andrei Zmievski wrote:
We've talked about this in the past, but let's bring it up again. It is a bit awkward to use CLI when it requires those <?php and ?> tags. We should probably have a command-line option that tells the parser to start in PHP mode instead of HTML/text. Any thoughts on this?
-Andrei                                       http://www.gravitonic.com/
* What were the first 15 billion years of the universe like for you? * -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.dev (#92906) next »