my WAMP does not support <? tag
i have to write <?php instead of <?
so i am unable to reun the scripts which contains <? tag
i herad about it to make changes in php.ini to support <? tag..
if any1 know plz help
thnaks in advance
my WAMP does not support <? tag
i have to write <?php instead of <?
so i am unable to reun the scripts which contains <? tag
i herad about it to make changes in php.ini to support <? tag..
if any1 know plz help
thnaks in advance
There are three possible tags for PHP code:
<?php .... ?>
<? ..... ?>
<% .... %>
The last one is especially bad: it is confusing compared to ASP (and others?).
While <?....?> can work, I don't recommend it: it's less clear and not supported by all hosts. It's a much better idea to fix the code than to patch the server.
There's also the option of a special syntax for echoing variables:
<?=$variable?> which is like <?php echo $variable; ?>
This is, again, a bad idea for the same reasons as above.
If you want to change the server, though, look here:
http://php.net/manual/en/ini.core.php
The term you want to search for on google (if you need more info) is "php short tags".
Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | español | português | català | un peu de français | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية
To further what daniel says, I would recommend changing the tags, not your php.ini. You can do a search-and-replace with any good text editor.
Adrian ~ facebook | gist/github
['66.215.156.37','208.75.149.97'] // ip,ip array!
"Take that sticker *off* your hat; you look stupid" --Wil Wheaton
It's called short_tags I believe. A simple "false" to "true" or "0" to "1" should fix this problem in php.ini
-Ben -- THE DYNAMIC DRIVERS
My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
I told my client to press F5, the client pressed F, then 5, *facepalm*
That is correct, but the other forms may be enabled by different settings. The link in my post above explains it all.
Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | español | português | català | un peu de français | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية
Bookmarks