Asked in
PHP Programming
HTML

What are the advantages of PHP over HTML?

Answer

User Avatar
Wiki User
April 30, 2010 4:07PM

HTML - displays data. That's it. That's all it can and will ever do.

as for PHP, I'll list a few things that it's capable of:

-database interaction (add, modify, delete data. Alter database structures and more)

-Output dynamic contents. (ie, do different things according to the time of day, number of time the user has logged in, number of files in a directory, entries in database, etc.). And it's not just text and numbers either. It can generated images, output PDF and more~

-string/text/date manipulation

-error checks

-sessions and cookies (where website remembers you for a period of time)

-compressions and archives

-Cryptography extensions

-maths

and MUCH, MUCH more.