Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jul 2009
    Location
    Near Salisbury, UK.
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 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
    New Coder
    Join Date
    Aug 2010
    Location
    At home with my bunny sleepers.
    Posts
    27
    Thanks
    0
    Thanked 7 Times in 7 Posts
    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
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote 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; 09-06-2011 at 01:36 AM.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    New Coder
    Join Date
    Jul 2009
    Location
    Near Salisbury, UK.
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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??

    Sue

  • #5
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,302
    Thanks
    4
    Thanked 204 Times in 201 Posts
    Dave .... HostMonster for all of your hosting needs

  • #6
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Quote 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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •