Jump to content

Recommended Posts

A web server does not come with the php download.

Microsoft Internet Information Services is available on your windows cd, if it is already installed. To check if it is installed, go to Start>Settings>Control Panel>Administrative Tools and look for Internet Information Services. If it isn't there, go back to Control Panel and click on Addor Remove programs. Then click on Add/Remove Windows Components. You will find it listed there. You will probably need to have your windows cd in the drive to install it. Once it is installed, open internet explorer and type http://localhost/ into the address bar. The page that shows up should help walk you through setting up your server.

 

To install php onto it, select the IIS when it asks you what server you are installing on. (I think it actually says IIS CGI, or something like that, I don't remember.)

For starters, place this script (name it info.php) within your web root (usually a directory named htdocs).

 

<?php

  phpinfo();

?>

 

Now go to http://localhost/info.php via a browser. If a bunch of information comes up about php, your good to go. From there, you might want to have a read of the book in my signiture.

Save the file in your webroot that is defined in the apache config file.

 

The webroot is probably here - C:/Program Files/Apache Group/Apache2/htdocs

 

just save the file as index.php or whatever.php, as long as it has the php extension it will be parsed as php.

 

Now, to make a proper web page you need proper html markup.

 

 

edit: beaten above :(

if you saved it as "helloworld.php" then this is where its found:

 

http://localhost/helloworld.php

 

This will work

 

if u named it as cheese:

 

http://localhost/cheese

 

this wont work.

 

reason why is there is no .php on the name of the file make sure you have put .php after the file name! its vital!

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.