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.
The two languages are used so differently that comparing their advantages and disadvantages is like comparing oil paints to violin bows. PHP is generally used for shell and server-side web scripting, whereas Java is used for local applications and client-side web applications.
PHP is easy and simple, PHP programmer can configure all webservers for PHP and mysql java programmer may find difficulties in configuring and diploying in a server like Websheare or web logic, nonetheless the tomcat with apache may be simple and easy.
If you want to work in the areas of web developement only, and do not want to go for desktop application developement, PHP is good for you.
If you do not want to work in the areas of animation of images. PHP is good for you. Java is a broad area to work on, PHP is a area to focus on. Syntax is c like in both.
PHP has no naming conviction and java may have certain naming conventions.
Besides these there may be number of advantages, you will be able know all of them on your own if you will agree to some of the above mentioned advantages.
Perl, php and Java are all examples of programming languages.
Yes. See the references.
In the output stream (i.e. using echo), output an "embed" tag (or if using older HTML, the "applet" tag). Note that the Java will run on the client, not on the server, meaning that PHP variables, etc, will not be available to it.
Ideal thing would be to retrieve the value from PHP using AJAX and then assigning it to a java script variable. Thereafter compare it to the java script variable that is already present.
Sure, Java is a good option as a programming language. However, there are other good options, too - for example, Python, PHP, C#, etc.
Perl, php and Java are all examples of programming languages.
Choosing a career based on what is hot and what is not a good idea. But to answer your question java is used in many applications and gadgets. PHP is more or less only used to make websites.
STRUTs is a framework of technology of java based on JSP/Java Servlets PHP is another server scripting language
Its similar to a number of languages such as C, C++, Java and Perl.
They are different technologies - JSP stands for Java Server Pages, where PHP means PHP: Hypertext Preprocessor... Basically, they do the same thing - generate webpages, but JSP scripts are programmed in Java, and PHP scripts in PHP, which are completely different scripting languages. PHP is usually used in small to medium-sized projects, where Java tends to be percieved as a more "enterprisey" (aimed at large projects).
PHP is very sufficient option for a fresher because its easy to learn.
using servlets, php, and database we can connect import codes into java
we cant use set timeout function in php because it is of java script function
Java is not better than VBNet, nor is VBNet better than Java. Eachone has its advantages and disadvantaged over the other one.
Java 6 has some major improvements over Java 5. Apart from the addition of additional coding libraries, it is compatible with more websites and still supported by Oracle, unlike the older version.
PHP was built for the web from the beginning, so it has a variety of built-in features helpful to web development that C does not (for example, built-in database support).
Yes. See the references.