Results 1 to 2 of 2

Thread: Disable PHP short tags

  1. #1
    jellby is offline Junior Member
    Join Date
    Nov 2014
    Posts
    9

    Default Disable PHP short tags

    I need to disable "short tags" in PHP, as I'm getting this king of error: https://www.electrictoolbox.com/php-...ache-htaccess/ Briefly, I want to have inline content in PHP with:

    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    but with short tags enabled, this line is interpreted as PHP, and gives an error. I tried disabling it in .htaccess, as suggested by the link above, but it didn't work.

  2. #2
    karl94 is offline AlterVista Staff
    Join Date
    Jan 2015
    Posts
    573

    Default

    You can't disable PHP short tags on AlterVista. You'll need to wrap the XML declaration inside an echo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO