If you want something you've never had, you must be willing to do something you've never done!

Powered by Blogger.

Php Programming Tutorial "Checking the Install" 2

Cerita Semalam Aaz | 10:33 PM | ,


After installing Apache and PHP try this minimal PHP script. It will show some of your server's web environment information.
<?php
phpinfo();
?>
Save it in the Apache document root as phpinfo.php. If you installed XAMPP in Windows then your document root is C:\Program Files\xampp\htdocs. My Linux default document root is /var/www/html. If you can't find it search and ask for help in the forum.
To watch the output of the phpinfo.php script type in your browser's address bar: http://localhost/phpinfo.php. If you installed Apache in a machine other than your desktop then replace localhost with the IP address of the server. My server IP address is 10.1.1.103 so i type in the address bar: http://10.1.1.103/phpinfo.php. If you already have a public web server with an assigned domain type: http://example.tld/phpinfo.php"

2 Responses So Far:

alga said...

hahaha............

Best PHP Training said...

Thanks for giving the information about Apache. &How to save the apache documents.

Related Post

 
Back To Top