Solved

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

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now