Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 05-09-2009
Member
 
Join Date: Nov 2008
Posts: 88
How To Check Your PHP Installation?

I have tried to install PHP on my local server, I thought the installation of PHP environment is easy and I carried forward, I have finished development, but when I check for the installation it does not set up properly and I also feel while Installing that something is missing but unable to traced out, can anyone tell me how to check whether installation is correct.

Thanks
Reply With Quote
  #2  
Old 05-09-2009
Member
 
Join Date: Mar 2008
Posts: 232
Re: How To Check Your PHP Installation?

PHP provides two execution interfaces: Command Line Interface (CLI) and Common Gateway Interface (CGI). PHP has a special function called phpinfo. It displays a large amount of information about the current state of PHP.If PHP is installed in the php directory on your system, you can try this to check your installation:

* Run "phpphp -v" command to check the Command Line Interface (CLI).
* Run "phpphp-cgi -v" command to check the Common Gateway Interface (CGI).
Reply With Quote
  #3  
Old 05-09-2009
Member
 
Join Date: Oct 2008
Posts: 80
Re: How To Check Your PHP Installation?

I've found that the best place to begin unit testing is with the application's business logic modules. PHP is the popular scripting language that many Web sites use to create dynamic pages. For example, If you see PHP printing the version information on your screen for both commands, your installation is ok. Open a command window and run the commands below:

C:>phpphp -v
PHP 5.2.2 (cli) (built: May 2 2007 19:18:26)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0 Copyright (c) 1998-2007 Zend Technologies
Reply With Quote
  #4  
Old 05-09-2009
Member
 
Join Date: Jan 2009
Posts: 143
Re: How To Check Your PHP Installation?

In order to take advantage of PHP, you will need to have PHP functioning on your server. Create following test.php script in /var/www/html directory (or your httpdoc directory):

<?
phpinfo();
?>

Open your web browser and type url: "http://localhost/test.php. Or Open your favorite browser and type in "http://localhost/testphp.php" in the address bar. If you see "Whee, PHP!", then you did everything right!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How To Check Your PHP Installation?"
Thread Thread Starter Forum Replies Last Post
How to fix Cyclic Redundancy Check Error during installation of Sims Medieval jAYASENA Video Games 5 12-06-2011 10:20 AM
Installation stops at 50 % of MS-office 2010 starter (upgrade) installation tiplets333 Windows Software 3 25-11-2010 05:03 AM
Triple boot installation - stuck at Windows installation Yuer Operating Systems 2 23-09-2010 11:29 AM
Check browser with ASP check FenceeII Software Development 3 14-01-2009 02:47 PM
Vista Installation freezes at Completing Installation stage. Manik Vista Setup and Install 2 01-01-2008 01:07 PM


All times are GMT +5.5. The time now is 07:36 PM.