html and php

Discussion in 'PHP' started by wortmann, Apr 3, 2012.

  1. #1
    I've created first a website using html and css files. now i need to create dynamic pages. done that and they are php pages. should i now rename all html files as php pages or can / should i leave the pages as they are?
     
    wortmann, Apr 3, 2012 IP
  2. Br4v0

    Br4v0 Member

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    make new php or dynamic javascript files and put in the same folder and connect in to html file as <script type ="text/Javascript" src= "your script.js or your script.php">
    </script>
     
    Br4v0, Apr 3, 2012 IP
  3. Zinosi

    Zinosi Well-Known Member

    Messages:
    75
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    118
    #3
    You can rename the the html files as .php. They will work same as html files if apache and php is enabled on your server.
     
    Zinosi, Apr 3, 2012 IP
  4. DerickThomas

    DerickThomas Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you should rename those HTML pages as .php so that Apache sever will recognize the script in it and run it.
     
    DerickThomas, Apr 6, 2012 IP
  5. Artuurs

    Artuurs Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    rename all html files!
     
    Artuurs, Apr 7, 2012 IP
  6. kaunomanas

    kaunomanas Greenhorn

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #6
    you must rename files where php code are written, otherwise all php code will be displayed as text. But if html file doesn't have php code, u can leave it like that.
     
    kaunomanas, Apr 7, 2012 IP