Php Script displaying source on browser instead of executing it

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • wapdxoo
    replied
    Thanks your your replies.. But, i've done evrytin needed to be done.. Pls see http://nxsite.t15.org/forum
    Last edited by wapdxoo; 12.06.13, 07:38.

    Leave a comment:


  • phoenix90
    replied
    Originally posted by chelios View Post
    Browser show source code if your php is not properly formated
    BAD WAY TO FORMAT PHP,SOME SERVERS DO NOT RECOGNIZE FORMATING AND OUTPUTS SOURCE CODE
    PHP Code:
    <? 
    print "Bad formating";
    ?>
    Corect way to do it
    PHP Code:
    <?php
    print "Corect formating";
    ?>
    This is most probably your problem, you have to setup a server to accept shorthand code, if not it will be commented/printed to screen. General rule of thumb is to always start php code with <?php and NOT <?

    Leave a comment:


  • chelios
    replied
    Browser show source code if your php is not properly formated
    BAD WAY TO FORMAT PHP,SOME SERVERS DO NOT RECOGNIZE FORMATING AND OUTPUTS SOURCE CODE
    PHP Code:
    <? 
    print "Bad formating";
    ?>
    Corect way to do it
    PHP Code:
    <?php
    print "Corect formating";
    ?>

    Leave a comment:


  • something else
    replied
    without seeing the script and also not knowing exactly what the problem is - there is no way of helping apart from guessing

    Leave a comment:


  • Php Script displaying source on browser instead of executing it

    i was just testing a script i made, but it didn't display design or any html..

    Instead, it showed all my codes in highlighted format. Meanwhile, some scripts work perfectly alright, but few still gives me problem..

    Any help?
Working...
X