Question:
What Is The Use Of These Programming Languages?
anonymous
2011-10-30 20:33:38 UTC
I am currently learning web programming. I know HTML is the body structure of the coding and CSS manages how it view and displays the HTML content. So now my question is:

What is the use of PHP, mySQL and Javascript. I mean how can I improve my website if I know these languages?


Thanks you and I appreciate your help!
Six answers:
Ratchetr
2011-10-30 20:55:13 UTC
Lets start with a basic premise: HTML and CSS are ****NOT**** programming languages.



They are markup languages. A markup language tells *something* (in this case, a web browser) how to display something. There are other markup languages that work with printers.



The difference between a markup language and a "real" programming language is that markup languages (generally) don't have the ability to perform logical operations. You just ***CAN NOT*** do a simple if statement in HTML/CSS. So you can't, say...display this text in BRIGHT ORANGE, but only if today is Halloween.



You need a *real* programming language to do that. Once you determine that you need a *real* programming language to do what you want to do, the next question becomes: WHERE? Do I want to run my code on the client side (Let the browser do it), or do I need code on the Server side?



JavaScript lets you do simple stuff on the client side (inside the browser). Yeah, you could see if it's Halloween and twerk the css property of some text to make it orange in JavaScript.



But, what if you wanted to .... I don't know....Show a list of all people that visited your site on Halloween. And list all the comments they left. You can't do that with HTML/CSS. (they aren't programming languages). And you can't do that with JavaScript, because it only knows about what is going on in 1 users browser, not everyone's browser.



You need something server side to do that. You need a web server that stores info about what all the web browsers viewing your site are doing. AND...you need to store that information somewhere..



So...you need a server side programming language for starters, and you need a database to store stuff. PHP/MySQL is one choice for that. Not the only choice, and certainly not the best choice. But a viable choice. It's where most beginners end up once they've figured out that HTML/CSS is not a programming language. They need more....
Play G
2011-10-30 20:43:29 UTC
HTML and CSS are basically what the user sees.. they are used to organize data on a webpage. HTML is markup language, it's not really a programming language.



PHP is a back-end programming language and is usually run on the server side to do all the logic behind the scenes. PHP is the brain for your website.



mySQL is for managing databases, so if you have a user base for your website, you'll need a database for that.



Javascript is a front-end language and runs on the client's PC and is used with HTML to make the page prettier and more interactive for the user.



Hope this helps
Michael King
2011-10-30 20:39:20 UTC
javascript is like the logic of your website. like if you turned javascript off for yahoo.com, it would probably have some major logic issues. mySQL and php are almost like a package. mySQL is a language that was invented to handle databases, some people say that its the most advanced language out there because of the database tasks it is doing. php is a language that was invented to communicate with the databases. without php (or other ssl) you wouldn't have any logging in, to any website. so no accounts. you wouldn't have high scores, or mmorpg's or dynamic pages. you wouldn't have email. yahoo answers would never be possible. i would say the most important language you can learn for website development is php, and mysql. but i would start with html, and then go onto css and javascript.
alisha
2016-09-11 15:19:00 UTC
Java could be very well for writing programs, you'll use it to try this, but when u wanna make an running approach, u have got to use C since it instantly manipulates the reminiscence of the laptop, an OS offers plenty with reminiscence manipulations, suggestions and all..however goodluck with that
anonymous
2011-10-30 20:49:20 UTC
javascript must be use where u need much more style with validations,

PHP is kind of open source technology where u can make whole website and if html knows then it is good to learn PHP





http://www.webdesignsolutionsdelhi.com/
anonymous
2011-10-30 20:40:17 UTC
html/css is the stuff people see



php/sql/java is the stuff that works in the background. the server side stuff.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...