PHP Code being output to the browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mrwinh
    New Member
    • Apr 2015
    • 1

    PHP Code being output to the browser

    <?php

    echo "Hello World!";



    ?>

    I write as above but the browser not read the script.Instead of reading the script,show me blank page in the firefox browser and in the Chrome browser show me the original script as above. please help me solve!
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    use http:// not file://

    Comment

    • Mukesh9023
      New Member
      • Nov 2013
      • 11

      #3
      Hii Mrwinh,
      Php is the server side scripting language. if you want to execute it fisrt of all you will have to install wamp or xammp after that put your code in wamp/www/flename.php and paste your code in filename.php. If it does not work then turn on your browser buffer using ob_start(); ie predefied function of php. second possiblity check your port number whether it has been assigned to other services or not.By deafult port no supported by apche is 80.

      Comment

      Working...