Solved

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

Posted on 2008-06-17
2
206 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

770 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