Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » php code outputing at the top of the page [Fix]

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 920 Views
  • raVen
    Avatar
    Community Member
    4 Posts

    php code outputing at the top of the page [Fix] Link to this post

    I have just been trying to upload my perfectly working site onto my web space. But i was getting outputing php code at the top of each page in the admin, site and db/build. after a day i have finally worked out what it is.

    the naughty files were in the blog modual and ecommerce modual and it was down to the php short tags not being enabled on the server. these files start with <% instead of <%PHP after changing them it all work well. i also added this to my php.ini:

    short_open_tag = On

    to my sites php.ini file on the server.

    Hope this helps anybody with the same problem.

    920 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.