answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

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.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

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.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the advantages of PHP over Java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are Perl PHP and Java Servlet's?

Perl, php and Java are all examples of programming languages.


Do php have a greater scope for job over java?

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.


What is the difference between PHP and struts?

STRUTs is a framework of technology of java based on JSP/Java Servlets PHP is another server scripting language


The PHP syntax is similar to which languages?

Its similar to a number of languages such as C, C++, Java and Perl.


What is the difference between PHP and JSP?

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).


Which is best for a fresher Java or PHP?

PHP is very sufficient option for a fresher because its easy to learn.


How do you import others codes in java?

using servlets, php, and database we can connect import codes into java


How do you use settime out in php?

we cant use set timeout function in php because it is of java script function


Is java better than vbnet?

Java is not better than VBNet, nor is VBNet better than Java. Eachone has its advantages and disadvantaged over the other one.


What are the advantages of java 6 over java 5?

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.


What are the advantages of PHP over C?

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).


Is COM and Java Applets supported by PHP?

Yes. See the references.