Opening php code
Posted by: ozric (---.pppoe-dynamic.ns.aliant.net)
Date: June 26, 2007 05:21PM

Why does WAMP require the use of php while starting a PHP script. For example, this works:

<?php
echo "Test";
?>

But this does not:

<?
echo "Test";
?>

I have installed WAMP manually before (as individual components) and this worked fine. I could not find any resource on google or this site to answer this, please help.

Thanks for your time,
Oz


Options: ReplyQuote
Re: Opening php code
Posted by: krusher_00 (---.accessplus.com.au)
Date: June 27, 2007 09:01AM

Short opening php tags have been depreciated, but you can still enable support for them if you go into your php.ini file and search for

short_open_tag = Off

change it to

short_open_tag = On

this will then make the <? opening tags work.

Options: ReplyQuote


Sorry, only registered users may post in this forum.