by crabby
9 replies
Which one is better?
PHP or HTML?
I heard PHP can make dynamic website but how?
#html #php
  • Profile picture of the author bcetin
    Well, it all depends on what you're trying to achieve. I use both for different purposes. For example, if you want to make a static page like a landing or squeeze page, you don't have to learn PHP, but when it comes to add a registration form to the page, you will need PHP.

    Dynamic means; PHP allows you to use a database as well as programming in things that will change the page depending on what the user does.

    The most significiant difference between them is HTML works on client computer (client-side) while PHP works on server (server-side).

    If your site involves databases or dynamic scripts like generating a cloud tag or dynamic pages for each product in your site; this cannot be done with HTML, you need PHP.

    Also to use PHP, you will need HTML. You can easily design the layout of a page with HTML and put PHP scripts in tables where needed like an online application form.

    Hope I was clear!
    {{ DiscussionBoard.errors[2977854].message }}
  • Profile picture of the author energee
    Your talking about two entirely different languages which usually get used together if your building a website. You'll need to learn both for dynamic content.
    {{ DiscussionBoard.errors[2977861].message }}
  • Profile picture of the author badwolf
    They're not the same thing. HTML is a **markup** language used to instruct the browser how to display content - so it has no variables, no if-statements for makign choices, no loops for repeating actions, etc. PHP is a programming language - so it has no markup instructions, but does have variables/if-statements/loops etc.

    You use HTML to say how you want your content to be displayed. You use PHP to say what content you want to create.
    Signature
    www.videocardroundup.com -- news/views/tutorials for all things related to PC video/graphics cards
    www.peonyplants.net -- the gorgeous world of peonies
    {{ DiscussionBoard.errors[2982147].message }}
  • Profile picture of the author Eager2SEO
    Originally Posted by crabby View Post

    I heard PHP can make dynamic website but how?
    I also heard a man and a woman can make a baby

    I suggest you go over to W3Schools Online Web Tutorials and start studying.
    Signature

    Available for article writing or <?php | .net ?> programming work! Article samples available on request.

    {{ DiscussionBoard.errors[2984273].message }}
  • Profile picture of the author marcuslim
    I see one as the output of the other, so a PHP script is run on the web server and the output is HTML which is what you see displayed on your browser.
    Signature
    {{ DiscussionBoard.errors[2986554].message }}
  • Profile picture of the author espradley
    There is no HTML vs PHP. They are two totally different technologies.

    HTML is a coding language that allows you to create a webpage that can be read by a browser.

    PHP is a coding language that generates HTML on the fly using your server.

    So, if you need a basic webpage...just to post things like links and pictures, you want to use html.

    If you want a webpage that needs to generate dynamic content (html) then you'll need to use PHP. So anything like blogs, CMS, or any other tool.
    Signature

    Eddie Spradley

    {{ DiscussionBoard.errors[2987190].message }}
  • Originally Posted by crabby View Post

    Which one is better?
    PHP or HTML?
    I heard PHP can make dynamic website but how?
    why don't you try some tutorial for html and php which clear your problem just search on google u'll be all answer of your query
    {{ DiscussionBoard.errors[2994078].message }}
  • Profile picture of the author jackendonald
    absolutely dependent Did he structure of the site. you can design a better website in PHP and ASP. all depends on your SEO consultant. if your SEO consultant is good, it optimizes your Web pages and make them the best and friendly to search engines.
    {{ DiscussionBoard.errors[3010503].message }}
  • Profile picture of the author annyphp
    in php you can dynamic site as you need.
    Also to use PHP, you will need HTML. You can easily design the layout of a page with HTML and put PHP scripts in tables where needed like an online application form.
    {{ DiscussionBoard.errors[3018909].message }}

Trending Topics