Computer problems,Computer help
*AX SOFT>>>Programming & Design

How to check if PHP was installed properly?


I have recently installed Apache, Php, and Mysql on my Windows XP computer. I was checking to see if Php works by using this code

<?php
phpinfo();
?>

but it doesn't seem to work. The php file never opens successfully on Firefox nor IE, instead it only opens on Dreamweaver.

I've used these websites for my installation:
http://www.php.net/downloads.php
http://www.thesitewizard.com/archive/apa...
http://dev.mysql.com/downloads/index.htm...

How do I know if I have properly installed PHP on my computer?

Any help will be much appreciated. Thank you in advance!

First, how exactly did you install these? Did you use the MSI installers? If so, that should have configured everything for you properly.

Also, I notice that you didn't get Apache from the apache site? You might want to check that one out... http://httpd.apache.org

Another route to go would be ONE program that sets up all three of these for you in one step, complete with controls in the system tray. Have a look here...

http://www.apachefriends.org/en/xampp-wi...

Finally, just to verify... for you to see the OUTPUT from a PHP file instead of it opening in Dreamweaver, you have to open the file from your web browser, and it needs to be using the domain name or IP address configured for your server, NOT the file name. So the URL, assuming you named the file "info.php", should look like one of these...

http://localhost/info.php

http://127.0.0.1/info.php

These are both local loop-back addresses. If your server is on a LAN, then you might also be able to access it by using your Computer Name, or LAN address, such as...

http://MyComputer/info.php

http://192.168.0.3/info.php

Are you sure that you have put all of your php scripts in your htdocs folder???

Try to access this address from your browser: http://localhost

If you can't access this address, try to check your service.
May the apache service or web server service is shut down..

Assuming that you are able to open html pages on the local server -

First, make sure that your php code above is in a file with a .php extension (e.g. phpcheck.php.), in your webroot directory, and that you are accessing it with http://localhost/phpcheck.php.

Second, in your apache configuration file, make sure you have something like this:

AddType application/x-httpd-php .php

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Write a SUB procedure in QBasic?

    public sub Dollar(quarter as int, dime as int, nickel as int, penny as int, Dollars as single) Dollars = (quarter * 25) + (dime * 10) + (nickel * 5) + penny dollars = dollars /100 end sub

    ...
  • How can I get started with programming?

    Alright, fresh blood. God I miss those days when I was reading through all of the beginner books and tutorials to figure out how to program. Personally I started out with python (See links below)...

  • What sorce did this come from?

    If it's from a digital camera, you can tell very easily. Almost all digital cameras (and camera phones) will append the 'Camera Model' detail to the file. Right-click on the image, g...

  • C programming simple question?

    I'm not sure I understand your question... if you have variables a, b and c, just pass them into your method like this : findRoots(a, b, c); That can't really be your question can ...

  • How to get image links to work?

    Myspace does NOT like outside websites that compete with their own. I had to simply list my yahoo website on the site. There is no way to get around it, because their site filters are set to catc...

  • Hotmail.com?

    the new hotmail thing is now @live.com/ca/ etc.. you can also get some other cool endings like @live.fr,girl.girl, etc google it and you'll find a code that you paste into the address bar th...

  • I have to do a project in java language in my college curriculum...please suggest me any good topic?

    write a program that reads in a serialized sudoku puzzle and prints out the solution. I had to code one of these in college and it was a blast!

    ...
  • Very simple math help in C programming?

    9 3 6 answers are: ivalue1=9 ivalue2=3 ivalue3=6 so first i start from ivalue3,ie easy c compiler precedence first give preference to brackets iValue3 = 3 * (5%3) ; so first 5%3,it ta...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster