Differences Among PHP, JavaScript, and HTML

Differences Among PHP, JavaScript, and HTML

In this post, ill try to explain about Differences Among PHP, JavaScript, and HTML. Some people may ask about the Differences Among PHP, JavaScript, and HTML, especially for the one that are new to web development.Therefore, Ill explain about Differences Among PHP, JavaScript, and HTML.

PHP, JavaScript or HTML are used by developer to develop a website. Each of them has its own role and function. Let see the comparison table bellow.

Comparison PHP JavaScript HTML
Side Server Side Client Side Client Side
Can Do Logic Yes Yes No
Role Website Engine Website Engine Website Template
Database Connection Yes No No
File Download by Client No Yes Yes

Because PHP is a server side language and the only one among the three that can connect to database, client cant download php file for security issues. Both PHP and JavaScript can implement logic, and manipulate HTML file to change the view. On the other hand, php can also used to manipulate JavaScript.

You have to combine PHP, JavaScript, and HTML to build a great website. Bellow is table for PHP, JavaScript, and HTML usage.

PHP JavaScript HTML Comparison
No No No Not a website
Yes No No Only show plain data
No Yes No Only show plain word or give alert :p
No No Yes Static website
No Yes Yes Interactive website with no database
Yes No Yes Website with database
Yes Yes No Show plain data or alert 😀
Yes Yes Yes Great website (interactive website with database)

aThats all I can give about Differences Among PHP, JavaScript, and HTML today. Hope this Differences Among PHP, JavaScript, and HTML is useful for you.

http://septiadi.com/2011/04/13/differences-among-php-javascript-and-html/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: