Saturday, 8 June 2013

How to check if php is installed on the Web server

To check if php is installed on or not on your web server, you have to create one file and upload it to server.

Code of the file should be like -

<?php
phpinfo();
?>

Name this file as getphp.php and try to access it from browser.
if php is installed on the server you will get to see the php information and php.ini settings. You will also find the php version on the top of the page. 


SystemWindows NT FORTITUD-A69E19 5.1 build 2600
Build DateMay 2 2008 18:01:20
Configure Commandcscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB"
Server APIApache 2.0 Handler
Virtual Directory Supportenabled
Configuration File (php.ini) PathC:\WINDOWS
Loaded Configuration FileC:\wamp\bin\apache\apache2.2.8\bin\php.ini

No comments:

Post a Comment