ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP Syntax viewable in view source code

July 08, 2014 1:19am

Subscribe [2]
  • #1 / Jul 08, 2014 1:19am

    Mafaik

    2 posts

    I have a template that require PHP syntax. On the preferences option, i allowing PHP and set the PHP parsing stage to output

    Then I test it the PHP is working, but when i try to “view page source” the PHP syntax is viewed. It’s odd right? since PHP is server side lang. How to fix this?

    Thanks

  • #2 / Jul 18, 2014 12:11pm

    Giraffentoast

    152 posts

    That’s not possible. 😉

    My guess would be you got PHP code commented out so it’s not parsed or there’s an error in your code and that part just shows up as plain text.

    If this still exists, mind to post it here?

  • #3 / Jul 20, 2014 1:00pm

    Mafaik

    2 posts

    Sorry, it was my mistake.
    i put the PHP on snippet.
    Then I call it on my template.
    Now i put the PHP on different template and embedded it.

    Thanks for the response.

    Regards,
    .mafaik

  • #4 / Jul 21, 2014 12:44pm

    Giraffentoast

    152 posts

    Alright, awesome. :coolsmile:

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases