help!!! iis, php installment

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lancet2003
Forum Newbie
Posts: 20
Joined: Sat Aug 09, 2003 11:29 pm

help!!! iis, php installment

Post by lancet2003 »

Hi:
I am a new beginner to web design, I have been stick for this whole day. Anybody can help me?

1. I run in Win2k professional, I installed IIS today.

2. I downloaded the PHP 4.3.2 installer from this website
http://www.php.net/downloads.php

according to what it says, I think I don’t need to configure the IIS.

3. I wrote my first program example1.php and put it in the C:\Inetpub\wwwroot

<HTML>
<BODY>
The data at the moment is
<?php echo gmdate("M d Y");
?>
</BODY>
</HTML>.

when I run this file
Why there only shows
“The data at the moment is”
It seems that the php code here can not run

Thanks!
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

You have to configure IIS. Go here for setup instructions:
http://www.php.net/manual/en/install.ii ... l.iis.iis4
lancet2003
Forum Newbie
Posts: 20
Joined: Sat Aug 09, 2003 11:29 pm

iss configuration

Post by lancet2003 »

I agree with you that the problem comes from iis.

when I want to start defaut website, a message box will show up
and tell me

Address already in use

what is the problem?

during the configuration, I do not know how to follow this instruction

"In the Extension box, type the file name extension you want associated with PHP scripts."
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

I don't have enough expierence with IIS to tell you what is wrong.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

is the file .html or .php?


i've noticed a common beginner mistake is .html.....
lancet2003
Forum Newbie
Posts: 20
Joined: Sat Aug 09, 2003 11:29 pm

I got it

Post by lancet2003 »

I transfer to another computer in my lab, then everything is OK
The same thing happened when I used OLAP last semester. I dont know why.

Thanks so much for you help.
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Absolutely no problem, PM or mail me if you need any help in the future and you think I could be of assistance. If you do decide to mail me then please put your PHPDN Username in the Subject so I don't delete it thinking it's spam.
toms100
Forum Contributor
Posts: 119
Joined: Wed Feb 26, 2003 10:29 am
Location: Bristol,UK

Post by toms100 »

are you sure you went to:
http://localhost/example1.php ?
Post Reply