Hello,
I know somewhat javascript but don't know anything about PHP. I need to know in what ways is PHP different than JavaScript. Which is easier to learn ? and which one is more useful?
Hello,
I know somewhat javascript but don't know anything about PHP. I need to know in what ways is PHP different than JavaScript. Which is easier to learn ? and which one is more useful?
JavaScript, is a client side programming language. This means that you can design and test this on your own computers server. This makes it easier if you cannot have access to the internet at the given time. It can be quite easy to learn as well but there is a limit to what you can do with JavaScript.
PHP, you could produce some powerful and user interactive websites. However the problem with php is that it is a server side programming language, meaning that you have to test it on a web server. So PHP allows you to design powerful websites and Javascript is the easiest to learn out of the two.
Javascript and PHP are pretty similar to program if you know the syntax.
First: JSP is Java Server Pages, a Java technology to create dynamic web pages through scriptlets.
The major difference between PHP and JavaScripts it's the runtime enviroment. PHP it's a server side language and JavaScript it's client side.
Actually the web applications implements both. Usually JavaScript for data validation and retrieve asynchronous data through xmlhttp Request (also see Ajax).
To run JavaScript you don't need nothing, because javascript run on internet browser.
PHP run on a webserver. The most famous is APACHE HTTPD SERVER (see http://apache.org). You need the PHP interpreter too.
Search for AppServ on http://sourceforge.net. This package include:
-Apache
-PHP
-MySQL
Read about AJAX (Asynchronous JavaScript and XML).
Some useful books:
Beginning Ajax with PHP - From novice to Professional
How to do Everything with PHP and MySQL
Download the manual from http://php.net website.
Bookmarks