| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Is PHP the implied script, so that it is okay to begin PHP code like this <? vs. like this <?php When is it not implied? *wow, some real beginer questions! eh?* |
|
#2
| |||
| |||
| "Karl J. Stubsjoen" wrote: > > Is PHP the implied script, so that it is okay to begin PHP code like this <? > vs. like this <?php > When is it not implied? You should use <?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. -Egon -- SIX Offene Systeme GmbH · Stuttgart - Berlin - New York Sielminger Straße 63 · D-70771 Leinfelden-Echterdingen Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de |
|
#3
| |||
| |||
| I didn't know that - very intersting!!!!! thank you Egon, this reaaly helps... Rom ----- Original Message ----- From: Egon Schmid (@work) <eschmid@php.net> To: Karl J. Stubsjoen <karlflips@kstub.com> Cc: PHP Mailing List <php-general@lists.php.net> Sent: Wednesday, January 17, 2001 1:51 PM Subject: Re: [php] <? PHP vs. <? "Karl J. Stubsjoen" wrote: > > Is PHP the implied script, so that it is okay to begin PHP code like this <? > vs. like this <?php > When is it not implied? You should use <?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. -Egon -- SIX Offene Systeme GmbH · Stuttgart - Berlin - New York Sielminger Straße 63 · D-70771 Leinfelden-Echterdingen Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net |
|
#4
| |||
| |||
| > > Is PHP the implied script, so that it is okay to begin PHP code like this <? > > vs. like this <?php > > When is it not implied? > > You should use <?php. In future versions the open short tag would be > dropped or your administrator can disable the open short tag. Well, I don't see the short tag ever being dropped actually. But yes, <?php would be best for writing code meant to be portable. -Rasmus |
|
#5
| |||
| |||
| > > Is PHP the implied script, so that it is okay to begin PHP code like this <? > > vs. like this <?php > > When is it not implied? > > You should use <?php. In future versions the open short tag would be > dropped or your administrator can disable the open short tag. Are there in fact plans to drop the short tags? --Toby |
|
#6
| |||
| |||
| Ye 2001-01-17 13:54 -0500, Toby Butzon skribis: > > > Is PHP the implied script, so that it is okay to begin PHP code like > this <? > > > vs. like this <?php > > > When is it not implied? > > > > You should use <?php. In future versions the open short tag would be > > dropped or your administrator can disable the open short tag. > > Are there in fact plans to drop the short tags? Short open tags won't work with xml. Therefore they won't work with xhtml. They conflict with where the Web is going. Thus, they have already been dropped. You don't _need_ them. Stay away from them. |
|
#7
| |||
| |||
| > Short open tags won't work with xml. Therefore they won't work with > xhtml. They conflict with where the Web is going. Aha! Yet another reason not to use <?= :-) philip On Thu, 18 Jan 2001, Michael Talbot-Wilson wrote: > Ye 2001-01-17 13:54 -0500, Toby Butzon skribis: > > > > > Is PHP the implied script, so that it is okay to begin PHP code like > > this <? > > > > vs. like this <?php > > > > When is it not implied? > > > > > > You should use <?php. In future versions the open short tag would be > > > dropped or your administrator can disable the open short tag. > > > > Are there in fact plans to drop the short tags? > > Short open tags won't work with xml. Therefore they won't work with > xhtml. They conflict with where the Web is going. > > Thus, they have already been dropped. You don't _need_ them. Stay > away from them. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > |
|
#8
| |||
| |||
| Hi Philip! On Wed, 17 Jan 2001, Philip Olson wrote: > > > Short open tags won't work with xml. Therefore they won't work with > > xhtml. They conflict with where the Web is going. > > Aha! Yet another reason not to use <?= > > :-) > you can always use <% and <%= instead. No XML problems, and you may confuse your {A,J}SP coders ![]() -- teodor. |
|
#9
| |||
| |||
| You know, this means that ALL of my hundreds of pages over multiple sites would break. That's really sad. I just think it's hard (to remember) when I have code like: <A HREF="filename.php?var=<? echo $thevar ?>">this link</A> to put in the 'php' there. It's so much easier just to code with short tags. (although I have a program that can work in every app that will trap <? and replace it with <?php everytime I type it. I could utilize that. (I love Macs... and Spell Catcher.) On 1/17/01 2:48 PM this was written: > Ye 2001-01-17 13:54 -0500, Toby Butzon skribis: > >>>> Is PHP the implied script, so that it is okay to begin PHP code like >> this <? >>>> vs. like this <?php >>>> When is it not implied? >>> >>> You should use <?php. In future versions the open short tag would be >>> dropped or your administrator can disable the open short tag. >> >> Are there in fact plans to drop the short tags? > > Short open tags won't work with xml. Therefore they won't work with > xhtml. They conflict with where the Web is going. > > Thus, they have already been dropped. You don't _need_ them. Stay > away from them. -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ |
|
#10
| |||
| |||
| > You know, this means that ALL of my hundreds of pages over multiple sites > would break. That's really sad. It won't happen. -Rasmus |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.