getting text intead of script output
getting text intead of script output
am 17.04.2007 22:41:51 von Ian_patterson
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.
Re: getting text intead of script output
am 18.04.2007 03:37:32 von Steve Belanger
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" wrote in message
news:jiaVh.3757$xP.2315@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.
>
Re: getting text intead of script output
am 18.04.2007 18:48:13 von unknown
Post removed (X-No-Archive: yes)
Re: getting text intead of script output
am 18.04.2007 22:51:18 von Ian_patterson
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" wrote in message
news:wDeVh.6194$j%5.5517@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" wrote in message
> news:jiaVh.3757$xP.2315@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.
>>
>
>
Re: getting text intead of script output
am 20.04.2007 15:13:09 von Steve Belanger
glad i could help :)
Steve.
"Ian_patterson" wrote in message
news:axvVh.11205$h8.329@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" wrote in message
> news:wDeVh.6194$j%5.5517@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" wrote in message
>> news:jiaVh.3757$xP.2315@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.
>>>
>>
>>
>
>