getting text intead of script output

I'm a newbie to PHP and I can't get started so this may sound like a mundane
question to you professionals.
I am using Windows XP Pro and have IIS 5.1 to be the server. I installed PHP
5.2.1 straight from PHP.net and it seems to have installed correctly.
I created a test page on Notepad and saved as test.php into
c:\inetpub\wwwroot\test
when I view it in IE 7 I see the script instead of the output. What am I
doing wrong please. I'm sure it's something simple. I've checked and
rechecked the syntax, I've copied code from the web all with the same
result.
Any help appreciated. Thanks.
Ian_patterson [ Di, 17 April 2007 22:41 ] [ ID #1690257 ]

Re: getting text intead of script output

is PHP installed into your IIS ?

if you do not have it installed then the script content will be outputted as
plain text instead of being executed by the web server.

Steve.

"Ian_patterson" <ian_patterson [at] verizon.net> wrote in message
news:jiaVh.3757$xP.2315 [at] trnddc04...
> I'm a newbie to PHP and I can't get started so this may sound like a
> mundane question to you professionals.
> I am using Windows XP Pro and have IIS 5.1 to be the server. I installed
> PHP 5.2.1 straight from PHP.net and it seems to have installed correctly.
> I created a test page on Notepad and saved as test.php into
> c:\inetpub\wwwroot\test
> when I view it in IE 7 I see the script instead of the output. What am I
> doing wrong please. I'm sure it's something simple. I've checked and
> rechecked the syntax, I've copied code from the web all with the same
> result.
> Any help appreciated. Thanks.
>
Steve Belanger [ Mi, 18 April 2007 03:37 ] [ ID #1691387 ]

Re: getting text intead of script output

Post removed (X-No-Archive: yes)
Notifier Deamon [ Mi, 18 April 2007 18:48 ] [ ID #1691392 ]

Re: getting text intead of script output

I thought it was because I had installed directly from PHP.net, however I
had to remap the path in IIS to the php-cgi.exe. I also needed to reconnect
IIS. All seems to be working now and I'm able to start learning. Thanks.

"Steve Belanger" <desktop [at] ebinformatique.com> wrote in message
news:wDeVh.6194$j%5.5517 [at] edtnps90...
> is PHP installed into your IIS ?
>
> if you do not have it installed then the script content will be outputted
> as plain text instead of being executed by the web server.
>
> Steve.
>
> "Ian_patterson" <ian_patterson [at] verizon.net> wrote in message
> news:jiaVh.3757$xP.2315 [at] trnddc04...
>> I'm a newbie to PHP and I can't get started so this may sound like a
>> mundane question to you professionals.
>> I am using Windows XP Pro and have IIS 5.1 to be the server. I installed
>> PHP 5.2.1 straight from PHP.net and it seems to have installed correctly.
>> I created a test page on Notepad and saved as test.php into
>> c:\inetpub\wwwroot\test
>> when I view it in IE 7 I see the script instead of the output. What am I
>> doing wrong please. I'm sure it's something simple. I've checked and
>> rechecked the syntax, I've copied code from the web all with the same
>> result.
>> Any help appreciated. Thanks.
>>
>
>
Ian_patterson [ Mi, 18 April 2007 22:51 ] [ ID #1691394 ]

Re: getting text intead of script output

glad i could help :)

Steve.
"Ian_patterson" <ian_patterson [at] verizon.net> wrote in message
news:axvVh.11205$h8.329 [at] trnddc06...
>I thought it was because I had installed directly from PHP.net, however I
>had to remap the path in IIS to the php-cgi.exe. I also needed to reconnect
>IIS. All seems to be working now and I'm able to start learning. Thanks.
>
> "Steve Belanger" <desktop [at] ebinformatique.com> wrote in message
> news:wDeVh.6194$j%5.5517 [at] edtnps90...
>> is PHP installed into your IIS ?
>>
>> if you do not have it installed then the script content will be outputted
>> as plain text instead of being executed by the web server.
>>
>> Steve.
>>
>> "Ian_patterson" <ian_patterson [at] verizon.net> wrote in message
>> news:jiaVh.3757$xP.2315 [at] trnddc04...
>>> I'm a newbie to PHP and I can't get started so this may sound like a
>>> mundane question to you professionals.
>>> I am using Windows XP Pro and have IIS 5.1 to be the server. I installed
>>> PHP 5.2.1 straight from PHP.net and it seems to have installed
>>> correctly.
>>> I created a test page on Notepad and saved as test.php into
>>> c:\inetpub\wwwroot\test
>>> when I view it in IE 7 I see the script instead of the output. What am I
>>> doing wrong please. I'm sure it's something simple. I've checked and
>>> rechecked the syntax, I've copied code from the web all with the same
>>> result.
>>> Any help appreciated. Thanks.
>>>
>>
>>
>
>
Steve Belanger [ Fr, 20 April 2007 15:13 ] [ ID #1693641 ]
PHP » alt.php.sql » getting text intead of script output

Vorheriges Thema: Using SendMail in Forms w/PHP HTML
Nächstes Thema: Help with Statement