Jump to content


PHP Not Working Properly

  • Please log in to reply
2 replies to this topic

#1 s251984



  • New Members
  • Pip
  • 1 posts

Posted 21 October 2013 - 10:33 PM


When I try to run phpinfo(), nothing is displayed in the browser. When I test with following code


 <?php echo "<p>Hello World</p>"; ?>
 <?php echo ‘<p>Order processed</p>’;?>


the output comes like this


Hello World"; ?> Order processed’;?>


Can you please help me to solve this issue?


Thanks in Advance


#2 mac_gyver


    Staff Alumni

  • Staff Alumni
  • 3,503 posts

Posted 21 October 2013 - 10:37 PM

what url are you entering in your browser? it should be something like http://localhost/your_file_name.php


beyond that, how exactly did you obtain php and install it to run on your localhost web server? what is your localhost web server type?

multi-purpose programming fool. well written source-code should be self-documenting. well written code should be self-troubleshooting.

#3 requinix


    Reversible Administrator

  • Administrators
  • 7,133 posts
  • LocationWA

Posted 22 October 2013 - 12:06 AM

You're also using smart quotes (around the "Order processed" message). Don't. Just regular "s and 's.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users