HTML or PHP?

Discussion in 'HTML & Website Design' started by ademmeda, Apr 12, 2011.

  1. #1
    Hi,

    Recently I started to build a website from scratch using HTML. The website will have a lot of pages and it will be updated every once a while (not frequently but like once a week).

    As I built more pages I soon realized that it will require too much work to make changes site-wide, because for example to change a text or link in the footer, I will have to change it on all the pages one by one.

    Then I noticed how easy it was in WordPress, which uses PHP, and editing such site-wide things or page templates were very easy.

    So, my question is, is there a way to do editing multiple pages easily in HTML (or maybe some code I don't know), or will I have to forget HTML and start with PHP?

    Thank you for any ideas.

    Nail
     
    ademmeda, Apr 12, 2011 IP
  2. brit.anica

    brit.anica Well-Known Member

    Messages:
    178
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    I am also looking for the same!

    one of my site has more than 100,000 HTML pages which I created without hassle but when need to update thats big problem..

    I asked some php developers, they said.. can keep that HTML pages and can use php too, no need to do from scratch.

    but still I didn't get any good how to for it though..

    btw my site is CMS photo gallery..

    hope someone answers for your question and I am also watching this thread.. thank you..
     
    brit.anica, Apr 12, 2011 IP
  3. cPAce

    cPAce Peon

    Messages:
    445
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    For a large website, I would recommend PHP if you know how to use it properly. For you, if you use php, you can make certain sections that load off of a php file for all you your pages.
     
    cPAce, Apr 12, 2011 IP
  4. cPAce

    cPAce Peon

    Messages:
    445
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Now, you can implement parts of php into html. That is your best bet for making a fast loading site with minimal space used.
     
    cPAce, Apr 12, 2011 IP
  5. GoNetix

    GoNetix Peon

    Messages:
    17
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can easily use PHP include functions to create a mini CMS by dividing your work into header, footer and nav all within HTML files. Alleycode HTML editor has a good tutorial that will take you through this steps by step.

    Alleycode is a free download at http://www.alleycode.com
     
    GoNetix, Apr 13, 2011 IP
    ademmeda likes this.
  6. cluongo18

    cluongo18 Member

    Messages:
    855
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    33
    #6
    Its simple!

    1) Make a php document which will contain the HTML code for your links. Save it as "navigtion.php" or whatever!
    2) In your HTML, you will insert a one line php function that will call your "navigation.php" file into play. You wont need the navigation bar HTML code in your HTML document. Just in the php one.
    3) When you want to update links or add links, you ONLY need to update your "navigation.php" file

    I actually made a video tutorial on this a while ago, here ya go man, I knew it would come in handy!
    http://www.youtube.com/watch?v=v8PUIVn3NFE
     
    cluongo18, Apr 13, 2011 IP
    ademmeda likes this.
  7. ademmeda

    ademmeda Active Member

    Messages:
    354
    Likes Received:
    3
    Best Answers:
    3
    Trophy Points:
    70
    #7
    Thank you very much for all your answers. Now I got my answer, and I will go the PHP way. It really makes sense to have certain parts of my site like header, navigation, footer etc. on separate files so that I can update them whenever I want. Thanks for the Alleycode mention GoNetix and thank you cluongo18 for the tutorial.
     
    ademmeda, Apr 13, 2011 IP
  8. Mjoseph83

    Mjoseph83 Peon

    Messages:
    135
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    According to me PHP is better than HTML. Generally PHP is used for large websites which contain number of web pages.
     
    Mjoseph83, Apr 13, 2011 IP
  9. yuvasweb

    yuvasweb Peon

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    PHP -> Wordpress / Joomla
     
    yuvasweb, Apr 13, 2011 IP
  10. shavic

    shavic Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #10
    Yes, open source systems are the best options.
     
    shavic, Apr 13, 2011 IP
  11. Hamid Senouci

    Hamid Senouci Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    if it's a big wesbite and it need to be updated everytime !!! so i advice you to use Joomla !!!
     
    Hamid Senouci, Apr 13, 2011 IP
  12. vpsbd

    vpsbd Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Php is alway best choice...
     
    vpsbd, Apr 13, 2011 IP
  13. KIbeth

    KIbeth Active Member

    Messages:
    374
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #13
    In terms of content management, I'd always use wordpress over spending more time coding my own script, its pretty damn versatile nowadays.
     
    KIbeth, Apr 15, 2011 IP
  14. tuppence

    tuppence Member

    Messages:
    131
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    40
    #14
    You could try something like X-site pro - I used to use it but now everything I have is pretty much Wordpress based.
     
    tuppence, Apr 15, 2011 IP
  15. zerophean

    zerophean Peon

    Messages:
    91
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #15
    its like these :

    Parent or child.

    if you choose child you never parent, so php is parent. :)
     
    zerophean, Apr 18, 2011 IP
  16. johneva

    johneva Well-Known Member

    Messages:
    1,480
    Likes Received:
    46
    Best Answers:
    1
    Trophy Points:
    170
    #16
    Any site larger that 10 pages its well worth using PHP even if it simple includes for nav, header, footer. Obviously very large sites then PHP and SQL database.
     
    johneva, Apr 19, 2011 IP
  17. jezzz

    jezzz Notable Member

    Messages:
    4,884
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    200
    #17
    PHP adds new life to website, HTML websites are good for static or fixed content related pages but if you have website with dynamic content so PHP is great option to use with
     
    jezzz, Apr 20, 2011 IP