Xepher.Net Forums

Xepher.net => Hosting Q&A => Topic started by: celebrateart on February 28, 2009, 03:07:14 PM

Title: what is PHP exactly
Post by: celebrateart on February 28, 2009, 03:07:14 PM
It's ockward for me asking but I rather ask you guys here, whats the difference with .HTML to .PHP?

thanks

Dennis
Title: Re: what is PHP exactly
Post by: Databits on February 28, 2009, 05:57:27 PM
HTML is a markup language designed for data layout and display (Hyper Text Markup Language). HTML is static information which doesn't change without the aid of something else (Javascript on the front-end and/or PHP, Ruby, ASP, etc... on the server-side).

PHP (as well as Ruby, ASP, and a few other things) is a server-side interpreted programming language which is typically used for generating HTML or other content dynamically.

That's about as well as I can explain it as I'm not really a teacher.
Title: Re: what is PHP exactly
Post by: celebrateart on March 09, 2009, 02:34:25 AM
So is more easier or better to use? Or is it better to stick with HTML?
Title: Re: what is PHP exactly
Post by: tickyhead on March 09, 2009, 03:12:10 AM
HTML is easier, but PHP is better. If you just want a simple website without too much that could go wrong, then HTML is the simpler option. If you want a dynamic website that allows for near limitless customization, including but not limited to visitor participation, then you want PHP, but it's harder to get the hang of, and things can go pretty damn wrong if you don't code it right.

At least, that's how I've always figured it.

Also, "awkward."
Title: Re: what is PHP exactly
Post by: Databits on March 09, 2009, 01:33:22 PM
Well, the other main difference is you generally use HTML and PHP together, not separately (well I suppose you could if you're serving up pages in something silly like plain text, xml, or something else). So you'd need to learn both in that case.

If you're just starting out with this stuff, I suggest just sticking to HTML and getting an understanding on what it is. Think of PHP as an extension to make it do more than it's initially able to.