Author Topic: what is PHP exactly  (Read 12255 times)

0 Members and 1 Guest are viewing this topic.

celebrateart

  • Newbie
  • *
  • Posts: 38
    • View Profile
what is PHP exactly
« 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

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
Re: what is PHP exactly
« Reply #1 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.
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]

celebrateart

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: what is PHP exactly
« Reply #2 on: March 09, 2009, 02:34:25 am »
So is more easier or better to use? Or is it better to stick with HTML?

tickyhead

  • Sr. Member
  • ****
  • Posts: 305
  • I enjoy crushing the hopes and dreams of others :D
    • View Profile
Re: what is PHP exactly
« Reply #3 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."
I don't hate everyone, I'm just very, very disappointed in them.

Databits

  • Global Moderator
  • *****
  • Posts: 1,607
  • Programming's not just a science, it's an art.
    • View Profile
Re: what is PHP exactly
« Reply #4 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.
(\_/)    ~Relakuyae D'Selemae
(o.O)    
(")_(")  [Libre Office] [Chrome]