Results 1 to 4 of 4

Thread: How To Check Your PHP Installation?

  1. #1
    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

  2. #2
    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).

  3. #3
    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

  4. #4
    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!

Similar Threads

  1. Replies: 5
    Last Post: 12-06-2011, 10:20 AM
  2. Replies: 3
    Last Post: 25-11-2010, 05:03 AM
  3. Replies: 2
    Last Post: 23-09-2010, 11:29 AM
  4. Check browser with ASP check
    By FenceeII in forum Software Development
    Replies: 3
    Last Post: 14-01-2009, 02:47 PM
  5. Vista Installation freezes at Completing Installation stage.
    By Manik in forum Vista Setup and Install
    Replies: 2
    Last Post: 01-01-2008, 01:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,616,135.30728 seconds with 16 queries