Results 1 to 4 of 4

Thread: how to execute phpinfo.php function

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2010
    Posts
    965

    how to execute phpinfo.php function

    hi, i started to learn php. i installed WAMP. now i am writing my first code. i am using notepad as a text editor. i first saved the file with name my_phpinfo.php
    then i inserted the code

    <?php phpinfo(); ?>

    and then i saved it just by click Ctrl + S.

    when i went to browser i wrote

    http://localhost/php_sandbox/my_phpinfo.php and pressed the enter button
    but the page is blank.

    1> Now please assist me that i am doing mistake?

    2? is it better to use notepad?

  2. #2
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: how to execute phpinfo.php function

    are you sure your php service is running correctly? try <?php echo 'test'; ?> see if that shows something, if it does, go in your php.ini and find disable_functions, if that line is there, remove phpinfo from that line.

    also maybe you should consider using xampp instead, its a bit more user friendly.. also for text editor, use notepad++.

    http://www.apachefriends.org/en/xampp.html
    http://notepad-plus-plus.org/

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2010
    Posts
    965

    Re: how to execute phpinfo.php function

    when i was using old version of WAMP, it would show that its running, when i would hover the mouse upon the icon of wamp in system tray. but in this latest version just shows, WAMPSERVER - SERVER Offline? how do i know that its running or not?

  4. #4
    Addicted Member
    Join Date
    Sep 2005
    Posts
    150

    Re: how to execute phpinfo.php function

    I tried that piece of code <?php phpinfo(); ?> on MAMP (ZAMPP) and it worked for me. As someone has already suggested, try ZAMPP. I find it easier to use especially for beginners of PHP and MySQL than many other.

Posting Permissions

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



Click Here to Expand Forum to Full Width