Page 1 of 1

Windows XAMPP not interpreting unix edited php files

PostPosted: 18. March 2010 23:49
by gmexapache
Hello everyone!
I have a MAMP installation on my mac where I developed some php apps using
textmate (unix format an LF endings). In every "head" file I always start with
<?php but in the next lines I use <? only. Every thing works fine on the mac
but when I transfer the file to a pc with windows XAMPP it seems that it can't
interpret those rigth. If I change every <? to <?php then it works on windows.

Does anybody has any other easier solution?

Best Regards

Re: Windows XAMPP not interpreting unix edited php files

PostPosted: 19. March 2010 05:40
by Altrea
<?php is the correct and recommend start tag for php blocks. The short tag <? can be a little bit tricky to work with XML side by side.

If you really know, that you don't need XML for your projects you can activate "short_open_tag" in the php.ini. But i recommend you to do not.