<?= does not work on Windows XP Apache 2.2.x and PHP 5.2.4

This is a discussion on <?= does not work on Windows XP Apache 2.2.x and PHP 5.2.4 within the PHP Language forums, part of the PHP Programming Forums category; When i do <?php echo "This works fine"; ?> Everything works fine. But when i do <?= &...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-28-2007
Nicos
 
Posts: n/a
Default <?= does not work on Windows XP Apache 2.2.x and PHP 5.2.4

When i do
<?php
echo "This works fine";
?>
Everything works fine. But when i do
<?= "Some text"?> nothing works. Any ideas?


Best Regards,
Nicos

Reply With Quote
  #2 (permalink)  
Old 09-28-2007
Rik Wasmus
 
Posts: n/a
Default Re: <?= does not work on Windows XP Apache 2.2.x and PHP 5.2.4

On Fri, 28 Sep 2007 10:06:26 +0200, Nicos <nicoskk@gmail.com> wrote:

> When i do
> <?php
> echo "This works fine";
> ?>
> Everything works fine. But when i do
> <?= "Some text"?> nothing works. Any ideas?


It relies on short_open_tags, which have been disabled by default for a
very long time now. Don't rely on them, only keep the setting on for
legacy code that still uses it for which you have no time to rewrite it,
and use full tags in new code.
--
Rik Wasmus
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0