Click to See Complete Forum and Search --> : upgraded to 5, do i need <?php


mrmigu
12-05-2005, 04:02 PM
i just upgraded my local machine to 5, running on appache 1.3, and noticed that i couldnt get any php code running on it. it was because i was using <? instead of <?php to begin my scripts.

is it version 5 that needs <?php, or can i change that in a config?
does 4.3 require the same thing?

devinemke
12-05-2005, 04:34 PM
look at the short_open_tag directive in your php.ini

rincewind456
12-05-2005, 04:34 PM
You need to enable short tags in the php.ini

mrmigu
12-05-2005, 04:41 PM
thanks much

Installer
12-05-2005, 06:17 PM
There are several ways using short tags can bite you. See here (http://www.php.net/manual/en/language.basic-syntax.php).