Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Php Or Html?


60 replies to this topic

#1 habbovalley

    Newbie

  • Kontributors
  • Pip
  • 1 posts

Posted 03 July 2007 - 11:36 PM

Well being a HTML its easy for me but what do people use the most?
Is it HTML or PHP.
It depends really on which you learnt first.
So im gonna have a poll.Post HTML for Html and PHP for php and we will see which is more popular.

#2 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 04 July 2007 - 12:03 AM

I use PHP because I can manipulate web pages more with PHP than HTML, like including another webpage to the current page with the command include. You can do the same with HTML but have to use bulky <object> command with register keys that's hard to remember. And coming from C++ background, I was able to understand PHP faster compare to HTML commands--especially love the FOR loop and IF, THEN commands.

However, I've been meaning to ask this question: do search engines like HTML page more than PHP page? I made few websites years ago, at the same time, one with PHP and the other one with HTML. Google, it seems, liked HTML pages better than PHP. My backlink search shows HTML cached by Google and none of my PHP cached by Google... Am I dreaming?

So, ultimately do you build with HTML (file ending) or PHP (file ending) which to choose?

#3 Tetraca

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 628 posts
  • Gender:Male

Posted 04 July 2007 - 01:10 AM

View Posthabbovalley, on Jul 3 2007, 11:36 PM, said:

Well being a HTML its easy for me but what do people use the most?
Is it HTML or PHP.
It depends really on which you learnt first.
So im gonna have a poll.Post HTML for Html and PHP for php and we will see which is more popular.
That's a very unfair comparision.

HTML is a markup language. It was made to display text and stuff like that in a fancy way. PHP was made as a scripting language to do things like access files, solve mathematical problems, and do repetitive tasks easily. If you're referring to the use of PHP on the web, well, you're going to need to use HTML with PHP anyways if you want to do anything worthwhile. HTML by its own isn't very convienient to update.

#4 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 04 July 2007 - 02:22 AM

Tetraca,

Thanks for the pointer. I guess since I use mainly to "calculate" my pages depending on the result, such as random file displaying or visitor's status value (whatever it may be) I just started to use PHP and spit out HTML command using the ECHO. This made me forget your point--PHP is really a scripting language where PHP still depends on HTML markups to render web pages.

I did find an answer to my question above...PHP or HTML and does it matter to SEO.

Quote

I will say though, that theirs no seo reasoning behind changing from php to html, I don't know why people worry with that. Mod_rewrite is only worth it to get url's without multiple variables.
Source

At the worse case, I can always rewrite .php to show .html by .htaccess rewrite.

#5 csp4.0

    NERVE: Interception

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 612 posts
  • Gender:Male
  • Location:Holy Terra
  • myCENT:68.57

Posted 04 July 2007 - 03:08 AM

It depends on what web page its for. Like if you're doing a web page for some login page then use php, but just a normal page like some introduction about your self with no advanced features i.e. guestbook. Then use html. To me html is easier, but php gives you more functionality. Also if you don't want people looking at your webpage's code use php, only advanced users that know how to create web browsers can know your 'code'

#6 shadowx

    Live your life so that in death you may stand side by side with your gods. Not at their feet.

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,674 posts
  • Gender:Male
  • Location:Essex, UK
  • Interests:Photography is a big interest, i have some photos up at my site, apex photographs (http://apex-photographs.com). Using my Lumix g1 to take the photos of course! <br /><br />Um computer games... photo editing and thats about it!
  • myCENT:68.57
  • Spam Patrol

Posted 04 July 2007 - 10:48 AM

Well as said for almost any website you need HTML, unless its one of those fancy pure css sites. So to be fair virtually 1OO% of websites use HTML so in that sense HTML is more popular, now if the question is about which language i prefer coding in i would say php because i like solving problems more than displaying info.

but in a comparison of sites with html and those using php HTML would win in terms of numbers of websites using it because you dont need t use php to make a website.

#7 lekrissy

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 115 posts
  • Gender:Female
  • Location:Indianapolis, IN
  • Interests:webdesign, graphic design, video games, singing, acting, drawing, writing, shopping

Posted 04 July 2007 - 08:48 PM

I use HTML and CSS at the moment because I don't know PHP yet. I would like to learn it soon so it can update stats atuomatically so I don't have to. Example, I plan to make a fanlisting soon and PHP is great with updating member stats right away. There's lots of other reasons. I'll still use HTML though.

#8 etycto

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 285 posts
  • Gender:Male
  • Location:U to the S to the A (but i'm haitian)
  • myCENT:79.33

Posted 04 July 2007 - 09:03 PM

while php is more flexible but it is more confusing than html and it requires a big download to code from my desktop so i prefer to use html. if i realy need php i normaly just download the scripts like wordpress or watever

#9 Striker9099

    Member [Level 2]

  • Kontributors
  • PipPipPipPipPip
  • 79 posts

Posted 05 July 2007 - 10:52 PM

I don't think such a question could actually be asked... It's as if you are comparing to objects of different nature... HTML is a markup language which is the basic knowledge in web-designing; it is indispensable. While on the other hand, PHP is a server-side scripting language which allows you to execute scripts on your website. Now if you want to keep it simple for you while coding your website, you can use HTML and at the same time, use PHP... each in its right place and for its right cause.
I just want to point to something... when you want to compare, you have to choose items of like-nature. To be clearer, you can compare PHP to ASP, HTML to XML... something like that.

#10 Byaja

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 23 posts

Posted 11 July 2007 - 10:38 AM

View PostStriker9099, on Jul 5 2007, 11:52 PM, said:

I don't think such a question could actually be asked... It's as if you are comparing to objects of different nature... HTML is a markup language which is the basic knowledge in web-designing; it is indispensable. While on the other hand, PHP is a server-side scripting language which allows you to execute scripts on your website. Now if you want to keep it simple for you while coding your website, you can use HTML and at the same time, use PHP... each in its right place and for its right cause.
I just want to point to something... when you want to compare, you have to choose items of like-nature. To be clearer, you can compare PHP to ASP, HTML to XML... something like that.

I myself use them both alongside each other but not all the time it depends what I am designing if its a clan/game based feature i will use both but if its a security module etc i will use php and html if needed, but that question is really hand in hand. i think using one or the another is the wrong way to go but everyone is different and they not think like I do.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users