php-windows Digest 30 Sep 2007 20:07:07 -0000 Issue 3339
Topics (messages 28508 through 28512):
Re: What's the difference between <? ?> and <?php ?> ???
28508 by: TG
28509 by: Abhishek Dutta
28510 by: M. Sokolewicz
28511 by: Stut
28512 by: Bob Chatman
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
There's a setting in php.ini that dictates whether you can use <? ?> or if
you have to use <?php ?>
It's called "short_open_tag" (
http://us.php.net/manual/en/ini.core.php#ini.short-open-tag )
It's usually a good idea to use <?php ?> to maintain portability. If what
you write gets moved to a system that has short_open_tag turned off (like
your current system it seems) your code won't break.
-TG
----- Original Message -----
From: "Abhishek Dutta" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Sun, 30 Sep 2007 12:43:46 +0530
Subject: [PHP-WIN] What's the difference between <? ?> and <?php ?> ???
> Hello.
> I just did a 'manual' installation of php on my winxp. A very weird (maybe)
> problem encountered. It doesn't 'recognize' <? ?> tags. but it recognizes
> <?php ?> tags. Clueless. Someone please help me out.
> regards
> Abhisek
>
>
--- End Message ---
--- Begin Message ---
thanks for the quick reply. I agree it is good to follow the rules (i mean
standard ;) ), But the thing is if I use some script written by someone
else, i have to rely on his/her choice.
Thanks
On 9/30/07, TG <[EMAIL PROTECTED]> wrote:
>
>
> There's a setting in php.ini that dictates whether you can use <? ?> or if
> you have to use <?php ?>
>
> It's called "short_open_tag" (
> http://us.php.net/manual/en/ini.core.php#ini.short-open-tag )
>
> It's usually a good idea to use <?php ?> to maintain portability. If what
> you write gets moved to a system that has short_open_tag turned off (like
> your current system it seems) your code won't break.
>
> -TG
>
> ----- Original Message -----
> From: "Abhishek Dutta" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Sun, 30 Sep 2007 12:43:46 +0530
> Subject: [PHP-WIN] What's the difference between <? ?> and <?php ?> ???
>
> > Hello.
> > I just did a 'manual' installation of php on my winxp. A very weird
> (maybe)
> > problem encountered. It doesn't 'recognize' <? ?> tags. but it
> recognizes
> > <?php ?> tags. Clueless. Someone please help me out.
> > regards
> > Abhisek
> >
> >
>
--- End Message ---
--- Begin Message ---
grep, replace all <?[^p] with <?php
wow, that was hard...
Abhishek Dutta wrote:
thanks for the quick reply. I agree it is good to follow the rules (i mean
standard ;) ), But the thing is if I use some script written by someone
else, i have to rely on his/her choice.
Thanks
On 9/30/07, TG <[EMAIL PROTECTED]> wrote:
There's a setting in php.ini that dictates whether you can use <? ?> or if
you have to use <?php ?>
It's called "short_open_tag" (
http://us.php.net/manual/en/ini.core.php#ini.short-open-tag )
It's usually a good idea to use <?php ?> to maintain portability. If what
you write gets moved to a system that has short_open_tag turned off (like
your current system it seems) your code won't break.
-TG
----- Original Message -----
From: "Abhishek Dutta" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Sun, 30 Sep 2007 12:43:46 +0530
Subject: [PHP-WIN] What's the difference between <? ?> and <?php ?> ???
Hello.
I just did a 'manual' installation of php on my winxp. A very weird
(maybe)
problem encountered. It doesn't 'recognize' <? ?> tags. but it
recognizes
<?php ?> tags. Clueless. Someone please help me out.
regards
Abhisek
--- End Message ---
--- Begin Message ---
M. Sokolewicz wrote:
grep, replace all <?[^p] with <?php
wow, that was hard...
No, but it will be hard to fix all the <?php= that you create.
-Stut
--
http://stut.net/
--- End Message ---
--- Begin Message ---
grep, replace all <?= with <?php print
On 9/30/07, Stut <[EMAIL PROTECTED]> wrote:
>
> M. Sokolewicz wrote:
> > grep, replace all <?[^p] with <?php
> > wow, that was hard...
>
> No, but it will be hard to fix all the <?php= that you create.
>
> -Stut
>
> --
> http://stut.net/
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---