|
-
Sep 26th, 2011, 09:46 AM
#1
Thread Starter
Fanatic Member
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?
-
Sep 26th, 2011, 04:00 PM
#2
Fanatic Member
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/
-
Sep 27th, 2011, 07:02 AM
#3
Thread Starter
Fanatic Member
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?
-
Sep 28th, 2011, 01:42 PM
#4
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|