simple php script doesn't run on IIS

This is a discussion on simple php script doesn't run on IIS within the PHP Language forums, part of the PHP Programming Forums category; I installes PHP binaries windows intaller for XP file name: php-4.3.4-Win32.zip I installed it and ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2004
Asher Golan
 
Posts: n/a
Default simple php script doesn't run on IIS

I installes PHP binaries windows intaller for XP
file name: php-4.3.4-Win32.zip
I installed it and I have a home page running
on the IIS.

So why the file "a.htm" containing:
-----------------------------------------------
<html>
<head>
<title>test php4</title>
</head>
<body>
<?php
print ("abcd");
?>
</body>
</html>
----------------------------------------------
doesn't print "abcd" on the internet explorer ???

Pleas help



Reply With Quote
  #2 (permalink)  
Old 01-18-2004
Andy Hassall
 
Posts: n/a
Default Re: simple php script doesn't run on IIS

On Sun, 18 Jan 2004 16:22:01 +0200, "Asher Golan" <datamor@actcom.net.il>
wrote:

>I installes PHP binaries windows intaller for XP
>file name: php-4.3.4-Win32.zip
>I installed it and I have a home page running
>on the IIS.
>
>So why the file "a.htm" containing:
>-----------------------------------------------
><html>
><head>
><title>test php4</title>
></head>
><body>
><?php
>print ("abcd");
>?>
></body>
></html>
>----------------------------------------------
>doesn't print "abcd" on the internet explorer ???


Don't multipost; you sent the exact same message to alt.comp.lang.php as well.

PHP only gets interpreted on those files for which you've configured your
webserver to interpret them. .htm typically won't get interpreted. .php is the
usual extension for which the server is configured to run PHP. Try renaming the
file to a.php.

--
Andy Hassall <andy@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0