Problems with the Windows version of XAMPP, questions, comments, and anything related.
I recently bought a website, and all of the php blocks on the site were opened with <? rather than <?php
This works fine on the webserver, but on my local server (XAMPP) it does not recognize the <? as starting a php block. If I change it to <?php it works fine.
This is a very large website and there are tons of instances of this. Rather than going through and changing every <? to <?php, is there a way to make XAMPP recognize <?
- Posts: 4
- Joined: 20. May 2011 04:13
Open your php.ini and search for short_open_tag .
There should only be one or two lines which are not commented out. That are the ones you have to change to On
If you are not sure if you change the right lines, post the full lines you want to change here.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!It's like porn for programmers
- AF Moderator
- Posts: 8243
- Joined: 17. August 2009 13:05
- XAMPP version: several
- Operating System: Windows 10 Pro x64
Return to XAMPP for Windows
Who is online
Users browsing this forum: No registered users and 55 guests