Professional Web Applications Themes

a simple php script doesnt run on IIS-windows XP - PHP Development

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...

  1. #1

    Default a simple php script doesnt run on IIS-windows XP

    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





    Asher Golan Guest

  2. #2

    Default Re: a simple php script doesnt run on IIS-windows XP

    You should rename the file as "a.php", but not "a.htm"

    Wing

    "Asher Golan" <datamoractcom.net.il> 在郵件
    news:newscache$1nworh$ec1$1lnews.actcom.co.il 中撰寫...
    > 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
    >
    >
    >
    >
    >

    wing Guest

  3. #3

    Default Re: a simple php script doesnt run on IIS-windows XP

    Asher Golan 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 ???
    >
    > Pleas help
    >
    >
    >
    >
    >
    give it a .php extension i.e. a.php

    ~Cameron
    Cameron Guest

  4. #4

    Default Re: a simple php script doesnt run on IIS-windows XP

    Asher:
    You could change the extension to php or since you have PHP installed on
    your own machine, you can change the php.ini file so that it will p .htm
    files for php as well.


    "Asher Golan" <datamoractcom.net.il> wrote in message
    news:newscache$1nworh$ec1$1lnews.actcom.co.il...
    > 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
    >
    >
    >
    >
    >

    Amit Varia Guest

  5. #5

    Default Re: a simple php script doesnt run on IIS-windows XP

    Amit Varia a 嶰rit:
    > Asher:
    > You could change the extension to php or since you have PHP installed
    > on
    > your own machine, you can change the php.ini file so that it will p
    > .htm files for php as well.
    >
    The first solution is much better.
    Parsing the htm (html) files is ressource consuming since it also ps
    html files with no php in them.

    Just rename a.htm to a.php

    --
    C'est nous qui faisons des femmes ce qu'elles valent et voila pourquoi
    elles ne valent rien. Mirabeau (1749-1791).

    Marc Nadeau Guest

Similar Threads

  1. New shutdown function Windows Vista doesnt work well
    By Chris Altmann in forum Windows Vista
    Replies: 2
    Last Post: March 4th, 06:01 AM
  2. Windows doesnt recognize flash (.swf) files ??
    By AndyManchesta in forum Macromedia Flash Player
    Replies: 6
    Last Post: February 27th, 10:03 PM
  3. Simple PHP script
    By Jedispy in forum PHP Development
    Replies: 4
    Last Post: February 23rd, 03:18 PM
  4. Script doesnt work under wait command
    By Bodhisattvan webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 5
    Last Post: January 12th, 04:01 PM
  5. Simple tr/// script
    By Mike Flannigan in forum PERL Miscellaneous
    Replies: 8
    Last Post: August 14th, 05:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139