What have I done wrong? newbie [solved]

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

What have I done wrong? newbie [solved]

Post by nutstretch »

I have installed mysql and php on my machine as i thought i had on my other one. when i try the test.php thing all i get is the code and not the proper screen does anyone know where i acn start looking for what i have done wrong.

This machine has iis as well. my other doesn't could that be it?
Last edited by nutstretch on Mon Jan 12, 2004 4:05 pm, edited 2 times in total.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Yes, you must add the .php extensions telling IIS to parse them with php.

Read through this, under installing IIS on XP.
http://www.php.net/manual/en/install.iis.php
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

Post by nutstretch »

i want to use apache server not iis does that makie a difference?

Sorry i am really thick until it clicks and as you can image it hasn't clicked yet
basdog22
Forum Contributor
Posts: 158
Joined: Sun Nov 30, 2003 3:03 pm
Location: Greece

Post by basdog22 »

User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

So you use Apache server then. Still have to tell Apache to parse php files with php.
nutstretch
Forum Contributor
Posts: 104
Joined: Sun Jan 11, 2004 11:46 am
Location: Leicester

Post by nutstretch »

i thought i had done that in the httpd file in conf.

ScriptAlias /php/ "c:/php/"

AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "php/php.exe"
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

http://www.php.net/manual/en/install.apache.php

Check out that link..
I would use the Module instead..The module has ALWAYS worked better for me..as a matter of fact..the Module has always worked..PERIOD..
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Yes, don't use the CGI .exe. use the Apache Module (the .dll file).
Post Reply