Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: HTML or PHP

  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HTML or PHP

    Hi,

    I started building my website and have done 5 pages so far but I have done them in .html format.

    Should I change over to PHP format as it seems to be more popular with scripts etc?

    Thanks,

    Rowan88

  • #2
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    It totally depends on what you want to do with your web site. If it requires information from a server then go with PHP. If it is dynamic you can also go with PHP. And there are other languages you can use as well.

    For example, on my web site I use PHP to determine what will appear based on the day of the week. So I can load up everything on Saturday and every day different things will appear as if I had changed it that day.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #3
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    I should add that it is not a case of PHP or HTML. They work together with the PHP building the HTML dynamically for you.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #4
    New Coder
    Join Date
    Sep 2011
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Rowan88 View Post
    Hi,

    I started building my website and have done 5 pages so far but I have done them in .html format.

    Should I change over to PHP format as it seems to be more popular with scripts etc?
    I use php and see html as an old method to do pages.
    Coupon Site Script - Turnkey Affiliate Moneymaking Business

    Code Coupon Discount - Coupon Site Script in Action

  • #5
    New to the CF scene
    Join Date
    Jan 2013
    Location
    UK
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    jerry62704 is right:

    If you have information on your website that changes periodically then it's generally more efficient to use a server side scripting language like PHP.

    If your website doesn't need to change (other than when you want to update the content manually) then stick to HTML.

  • #6
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    Quote Originally Posted by aditd View Post
    I use php and see html as an old method to do pages.
    You don't display PHP, you display HTML. You can use PHP to build the HTML, and many of us do that. One is a tool to build the other.
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #7
    New to the CF scene
    Join Date
    Feb 2013
    Location
    India
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you are going to create website it is highly recommended that you choose PHP as your default file extension preference in place of HTML. Write php in place of html where prompted in the weblog config preferences section.

  • #8
    Regular Coder
    Join Date
    Jun 2011
    Location
    CA
    Posts
    105
    Thanks
    0
    Thanked 10 Times in 10 Posts
    Use PHP if you are going to use a database like MySQL, want to dynamically add dates and times, headers, footers, manipulate strings of text, add password encryption (access control), process forms, populate pages with repeatable elements like tables and images (like image galleries), protect form data from hackers, image manipulation, implement error handling, and so on.

    It's a REALLY good idea to start using PHP right away, especially if you think your site will grow a great deal.


  •  

    Posting Permissions

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