So it doesn't seem to be script mappings - I stand corrected.
Have you checked that the .PHP type is associated in the
Map branch of the registry?.
You might want to check that it's .PHP, and not .PHP4 , as this could be
your problem if some tool did the setup and you didn't see the actual file
ext being mapped.
If that doesn't work, then as you already know the problem isn't with the
it's probably something in IIS having a fit.
Here's my general checklist:
Did you restart IIS?
Did you restart the server?
Does php.exe have the appropriate permissions?
Are you sure that the script mappings are correct? (based upon the fact that
you're getting the php source I'm inclined to say that it's still your
If all that fails, there's always:
Have you tried a hammer?
I hope somewhere in there you find an answer,
if it was me I'd be triple checking my script mappings, as from what you've
said everything seems to work individually, the pieces just haven't been
Sqlcoders.com Dynamic data driven web solutions
----- Original Message -----
From: "Sqlcoders.com Programming Dept" <[EMAIL PROTECTED]>
To: "php general" <[EMAIL PROTECTED]>
Cc: "Joshua E Minnie" <[EMAIL PROTECTED]>
Sent: May 22 2002 09:14 PM
Subject: Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5
> Hi there!,
> In a word - script mappings.
> In the IIS administrator,
> you must associate the .php extension with the php interpreter.
> Use the IIS help wizard to tell you how,
> 1. Start Regedt32.exe and open the following registry key:
> 2. Click Add Value from the Edit menu.
> 2b. The Value Name is .php
> 2c. The Data type is REG_SZ.
> 2d. The String value is <the full path to php.exe.exe>\php.exe %s %s
> NOTE: The "%s %s" is case sensitive. (e.g. "%S %S" will not work).
> (%s %s is the file, you might need to add a -i or -whatever if php needs
> 3. Restart the WWW service.
> 4. Cross your fingers, if it doesn't work go in & play with the string
> by using the edit dialog in regedt32.
> Sqlcoders.com Dynamic data driven web solutions
> ----- Original Message -----
> From: "Joshua E Minnie" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: May 22 2002 10:54 AM
> Subject: [PHP] W2K SP2, PHP 4.2.1, IIS 5
> > Hey all,
> > I have a problem, that I can't seem to find the answer to. I have
> > checked the archives and the website, but to no avail. I have installed
> > 4.2.1 on my local machine with IIS running W2K Pro. When I run php -i,
> > get the html output expected. But when I try to open the simple php
> > <?php
> > phpinfo();
> > ?>
> > all I get is the script written directly to the browser as text. I
> > figure out why it is not going through php.exe. Any help would be
> > appreciated.
> > -josh
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php