What"s the difference between <? ?> and <?php ?> ???
What"s the difference between <? ?> and <?php ?> ???
am 30.09.2007 09:13:46 von Abhisek Dutta
------=_Part_6329_27387024.1191136426673
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
tags. Clueless. Someone please help me out.
regards
Abhisek
------=_Part_6329_27387024.1191136426673--
Re: What"s the difference between <? ?> and <?php ?> ???
am 30.09.2007 09:25:02 von Trevor Gryffyn
There's a setting in php.ini that dictates whether you can use ?> or if
you have to use
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 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"
To: php-windows@lists.php.net
Date: Sun, 30 Sep 2007 12:43:46 +0530
Subject: [PHP-WIN] What's the difference between ?> and ???
> 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
> tags. Clueless. Someone please help me out.
> regards
> Abhisek
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: What"s the difference between <? ?> and <?php ?> ???
am 30.09.2007 14:54:48 von Abhisek Dutta
------=_Part_6901_19562923.1191156888953
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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 wrote:
>
>
> There's a setting in php.ini that dictates whether you can use ?> or if
> you have to use
>
> 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 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"
> To: php-windows@lists.php.net
> Date: Sun, 30 Sep 2007 12:43:46 +0530
> Subject: [PHP-WIN] What's the difference between ?> and ???
>
> > 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
> > tags. Clueless. Someone please help me out.
> > regards
> > Abhisek
> >
> >
>
------=_Part_6901_19562923.1191156888953--
Re: What"s the difference between <? ?> and <?php ?> ???
am 30.09.2007 19:14:37 von Tularis
grep, replace all [^p] with
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 wrote:
>>
>> There's a setting in php.ini that dictates whether you can use ?> or if
>> you have to use
>>
>> 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 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"
>> To: php-windows@lists.php.net
>> Date: Sun, 30 Sep 2007 12:43:46 +0530
>> Subject: [PHP-WIN] What's the difference between ?> and ???
>>
>>> 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
>>> tags. Clueless. Someone please help me out.
>>> regards
>>> Abhisek
>>>
>>>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: What"s the difference between <? ?> and <?php ?> ???
am 30.09.2007 20:51:50 von Stut
M. Sokolewicz wrote:
> grep, replace all [^p] with
> wow, that was hard...
No, but it will be hard to fix all the
-Stut
--
http://stut.net/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: What"s the difference between <? ?> and <?php ?> ???
am 30.09.2007 22:07:01 von bob.chatman
------=_Part_7944_12420983.1191182821836
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
grep, replace all = with
On 9/30/07, Stut wrote:
>
> M. Sokolewicz wrote:
> > grep, replace all [^p] with
> > wow, that was hard...
>
> No, but it will be hard to fix all the
>
> -Stut
>
> --
> http://stut.net/
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
------=_Part_7944_12420983.1191182821836--
Re: What"s the difference between <? ?> and <?php ?> ???
am 17.02.2008 16:56:40 von friso
all I know is that ?> are not XML compliant and you are advised to use
instead...
""Abhishek Dutta"" schreef in bericht
news:b7a836190709300013m3c2fe240h5a74749607aed330@mail.gmail .com...
> 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
> tags. Clueless. Someone please help me out.
> regards
> Abhisek
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: What"s the difference between <? ?> and <?php ?>???
am 18.02.2008 14:45:12 von Jarrett Meyer
In your php.ini, if you want and ?> to work, you need to turn on
"short tags". However, it is better to write long-tag compliant code in
the first place. However, going through and editing that much code can
be a bit of a bother.
friso wrote:
> all I know is that ?> are not XML compliant and you are advised to
> use instead...
>
> ""Abhishek Dutta"" schreef in bericht
> news:b7a836190709300013m3c2fe240h5a74749607aed330@mail.gmail .com...
>> 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
>> tags. Clueless. Someone please help me out.
>> regards
>> Abhisek
>>
>
--
Jarrett M. T. Meyer, M.B.A.
jmtmeyer@yahoo.com
http://www.jarrettmeyer.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php