[PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Alexander Skwar

So sprach Costas am Wed, Apr 04, 2001 at 02:07:54PM +0100:
 Is there an equivalent in PHP of the following code:
 
 equivalent of asp's %= strTest %

Uhm - what does this strange line do??

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die guenstige Art an Linux Distributionen zu kommen
Uptime: 3 days 20 hours 46 minutes

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Philip Olson


PHP does have an equivelent, as shown by Shaun :

  ?=$var?

Things to keep in mind :

  1. Is PHP4+ specific
  2. Won't work if short_open_tag setting is off (in php.ini)
 - One reason to turn this off, to enable XML support
  3. Doesn't follow up-and-coming PEAR coding standards

And as you've seen, many don't even know what ?= is.  You'll find zealots
on both sides of this use, the choice is yours. ;-)

Regards,
Philip


On Sun, 8 Apr 2001, shaun wrote:

 
 I haven't done asp in a while so if this just shows the var's value then you 
 just replace % with ?
 
 ?= $hi ?
 
 On Saturday 07 April 2001 11:00, Alexander Skwar wrote:
  So sprach Costas am Wed, Apr 04, 2001 at 02:07:54PM +0100:
   Is there an equivalent in PHP of the following code:
  
   equivalent of asp's %= strTest %
 
  Uhm - what does this strange line do??
 
  Alexander Skwar
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Michael Kimsal

Yes yes I'm a zealot.  :)

If the people defining the PEAR standards really were that interested in
standards,
why include alternate ways of doing something?  ?=$blah;?
And if the 'short tag' method is useful enough for people, why 'exclude' it
from a standard?  This notion of 'PEAR standards' does irk me some, because
it's been so long in coming, and people are deferring to it before it's a reality.

At least, that's the impression that I get.



Philip Olson wrote:


   1. Is PHP4+ specific
   2. Won't work if short_open_tag setting is off (in php.ini)
  - One reason to turn this off, to enable XML support
   3. Doesn't follow up-and-coming PEAR coding standards

 And as you've seen, many don't even know what ?= is.  You'll find zealots
 on both sides of this use, the choice is yours. ;-)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Philip Olson

Have a look here :

  http://www.php.net/manual/en/pear.standards.php

Regarding ?= : the PEAR example was just part of it as it relates to 
short_tags, not ?= specifically.

  http://www.php.net/manual/en/configuration.php#ini.short-open-tag

Regards,
Philip


On Sat, 7 Apr 2001, Michael Kimsal wrote:

 Yes yes I'm a zealot.  :)
 
 If the people defining the PEAR standards really were that interested in
 standards,
 why include alternate ways of doing something?  ?=$blah;?
 And if the 'short tag' method is useful enough for people, why 'exclude' it
 from a standard?  This notion of 'PEAR standards' does irk me some, because
 it's been so long in coming, and people are deferring to it before it's a reality.
 
 At least, that's the impression that I get.
 
 
 
 Philip Olson wrote:
 
 
1. Is PHP4+ specific
2. Won't work if short_open_tag setting is off (in php.ini)
   - One reason to turn this off, to enable XML support
3. Doesn't follow up-and-coming PEAR coding standards
 
  And as you've seen, many don't even know what ?= is.  You'll find zealots
  on both sides of this use, the choice is yours. ;-)
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: equivalent of asp's %= strTest %

2001-04-07 Thread Plutarck

 And if the 'short tag' method is useful enough for people, why 'exclude'
it from a standard?

Because no matter what installation of PHP you have, this works:

?php echo $var; ?

But this:

?=$var?

Or this:

? echo $var; ?

Or this:

% echo $var; %

...is made invalid if short_tags are disabled (and the last only works with
ASP tag support, and I'd say 90% of PHP users don't have it enabled). And if
the tags are turned off, guess what happens to all the code between those
tags? woops ;)

And as mentioned, short_tags must be disabled on .xml pages. Or they at
least "should" be.

While there are work-arounds, if you didn't use short-tags you wouldn't ever
have a problem with any standard unless ?php becomes part of their markup,
lol. And if it does, they will have to be "dealt with" :)


--
Plutarck
Should be working on something...
...but forgot what it was.



"Michael Kimsal" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Yes yes I'm a zealot.  :)

 If the people defining the PEAR standards really were that interested in
 standards,
 why include alternate ways of doing something?  ?=$blah;?
 And if the 'short tag' method is useful enough for people, why 'exclude'
it
 from a standard?  This notion of 'PEAR standards' does irk me some,
because
 it's been so long in coming, and people are deferring to it before it's a
reality.

 At least, that's the impression that I get.



 Philip Olson wrote:

 
1. Is PHP4+ specific
2. Won't work if short_open_tag setting is off (in php.ini)
   - One reason to turn this off, to enable XML support
3. Doesn't follow up-and-coming PEAR coding standards
 
  And as you've seen, many don't even know what ?= is.  You'll find
zealots
  on both sides of this use, the choice is yours. ;-)


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]