Web Analytics Made Easy -
StatCounter phpinfo not displaying - CodingForum


No announcement yet.

phpinfo not displaying

  • Filter
  • Time
  • Show
Clear All
new posts

  • phpinfo not displaying

    I have just loaded apache and php on my new laptop.

    Apache is working and if I can run a Hello World php file but if I run phpinfo I just get a blank html page.

    Any ideas on what could be wrong?

    Thanks Sue

  • #2
    Did you print the return value of phpinfo?

    PHP Code:
    echo phpinfo(); 
    Choose a job you love, and you will never have to work a day in your life.

    Dolrich Fortich Love to Code Using :)
    [PHP/MySql, Jquery, Codeigniter, Opencart]


    • #3
      Originally posted by dolrichfortich View Post
      Did you print the return value of phpinfo?

      PHP Code:
      echo phpinfo(); 
      You don't need to print it. The function outputs text by itself. Unless you mean to echo out the return value of true/false if it was successful or not? But then again if it is not outputting the info then I don't think finding out it returns false will be very helpful
      Last edited by Spookster; Sep 5, 2011, 09:36 PM.
      CodingForum Supreme Overlord
      All Hail Spookster


      • #4
        Thanks for replying.

        This is a new laptop and the phpinfo prog works on the other PC.
        I am trying to set up everything with the latest versions of Apache, PHP etc and I think it is the setup or the config changes - something.

        Need to find what to download from PHP - not that obvious - for Windows 7 64 bit. Just for development.
        Using Apache 2.2 and MySql

        Do I really have to build it myself??



        • #5
          Dave .... HostMonster for all of your hosting needs


          • #6
            Originally posted by suejoh View Post
            Do I really have to build it myself??
            If you've never installed Apache & PHP before it's far easier to use something like WAMP, XAMPP, etc.