|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Apache recognizes <?php but not <?
Hi,
I just installed Apache 2.0 with PHP 5 and MySQL. If I use the <? tag in my php scripts everything seems to work. However, when I just use the <? tag it seems to not be recognized. For example, I have the following test file: <?php echo "Hello"; ?> <? echo "Hello"; ?> The html source that is generated is: Hello <? echo "Hello"; ?> Any ideas? |
|
#2
|
|||
|
|||
|
Quote:
You should edit your php.ini file in this way: Code:
short_open_tag = On and then don't forget to restart your Apache server. Enjoy ![]() |
|
#3
|
|||
|
|||
|
Thanks. I knew it was something simple like that.
|
|
#4
|
|||
|
|||
|
Quote:
also you may need to know this about webhosts, most will have the short tags disabled. so, you may start coding the long way, instead of using the short tags.
__________________
Apache Expert |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Apache recognizes <?php but not <? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|