tags:

views:

116

answers:

3
+11  A: 

In your php.ini, you need to set the following directive:

short_open_tag = On

From the manual:

Tells whether the short form (<? ?>) of PHP's open tag should be allowed...

If you have time on your hands, you may want to consider replacing all those short tags '<?' with the full-form ones <?php, for better portability (see what just happened to you? :)

karim79
You saved my day :) Thank you very much!
Rhama Arya Wibawa
Rhama Arya Wibawa
@Rhama Arya Wibawa - can you please paste the error in your question or here
karim79
@karim79 well, the error was recorded in the Apache's error_log (it's not there anymore as I had deleted the previous Apache's installation folders) and now that it has been fixed, albeit using method that isn't really recommended, I'm not eager to reproduce the error. :(
Rhama Arya Wibawa
@Rhama Arya Wibawa - it's not a big deal, the important thing is you got it working :) I just mentioned that for information purposes, I wasn't trying to make you feel bad.
karim79
A: 

If you want to use the short tags: ("<?")

they need to be enabled in you php.ini. See this link.

shambleh
+2  A: 
OfficeJet