Page 1 of 1

Changing the default parsing rule...

Posted: Tue Nov 28, 2006 12:39 pm
by hardwarerocks
I have a simple question... I am working with a customer and all of his code is missing the "php" in his opening tag "<?php " So of course his code does not work. He told me I was old school and that php3 required the php declaration after the question mark not php 5... So Is there anyway to parse the php code with just <? phpinfo();?> If so what must change in the config to support this parsing derivative?

Posted: Tue Nov 28, 2006 12:48 pm
by MrPotatoes
1. ew
2. change it
3. you'd have to do it in the php.ini in order to allow short tags to be parsed
4. don't do number 3. that's just plain band

Posted: Tue Nov 28, 2006 1:54 pm
by RobertGonzalez
Short tags are evil. Don't use them. PHP5, by default, disables short tags. I would recommend you follow suit. Do a simple find and replace in the PHP pages to change '<?' to '<?php'. That should be fast enough.