Solved

How do I tell PHP to use <? ?> instead of <?php ?>

Posted on 2008-06-17
2
209 Views
Last Modified: 2013-12-13
I just installed Apache 2.2.9 and PHP 5.2.6 on Vista. It all seems to have taken well.  I can run PHP files but it requires that I encase all PHP commands in <?php ?>.  All my code is written in <? ?> though.  How do I set it up to read the code under <? ?>:
0
Comment
Question by:isilver18
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 125 total points
ID: 21810235
in php.ini, you need to have this setting:
short_open_tag = On
0
 

Author Comment

by:isilver18
ID: 21810356
Oh my, so simple and so perfect.  
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question