Development Help with php

Discussion in 'Software' started by DeX, 23 Feb 2003.

  1. DeX

    DeX Mube Codder

    Joined:
    22 Jul 2002
    Posts:
    4,152
    Likes Received:
    3
    I've just installed php with IIS but whenever I point to a php file the browser does not recognise the <?php ?> tags and displays the file as if it were an html file. What on earth could be causing this? I have the php file in wwwroot folder and this is where I've stored php files before but it simply doesn't work this time :(. What can I do?
     
  2. bradford010

    bradford010 Bradon Frohman

    Joined:
    7 Dec 2001
    Posts:
    3,426
    Likes Received:
    0
    A few questions.

    I assume you're saving as '***.php'? (as opposed to putting php in ***.html files)

    Are you pointing the browser in the fashion 'C:/inetpub/wwwroot/***.php' (which wont work) or 'localhost/***.php' (which will)?

    Did you install php or IIS first?
     
  3. DeX

    DeX Mube Codder

    Joined:
    22 Jul 2002
    Posts:
    4,152
    Likes Received:
    3
    1. Yep. They are .php files
    2. Yep, the latter I've done it before and it worked.
    3. IIS then php.
     
  4. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
  5. DeX

    DeX Mube Codder

    Joined:
    22 Jul 2002
    Posts:
    4,152
    Likes Received:
    3
    Woot, I found the info I was looking for!

    Cheers RTT :clap:
     
  6. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74

Share This Page