Traditional Culture Encyclopedia - Traditional customs - Which is better to learn, PHP or JAVA? Which is more widely used?

Which is better to learn, PHP or JAVA? Which is more widely used?

PHP learning

(1)Familiar with HTML/CSS/JS and other basic elements of the web page, complete the stage can create a complete web page on their own, the elements of the attributes to reach the degree of familiarity

(2)Understanding of the concept of a dynamic language, the mechanism of operation, familiar with the syntax of PHP

(3)Learning how to combine PHP and HTML to complete simple dynamic page

(4) contact MYSQL, began to design database programs

(5) continue to consolidate, feel through most of the commonly used functions of PHP, and can understand the OOP, MYSQL optimization, as well as templates

(6) to complete a full-featured dynamic site

Java learning

1. Principles

Understanding the principles of JAVA, it is possible to really appreciate everything JAVA, learning anything, as long as you can master the principles, it will be smoother.

Learning the JAVA language is very simple, after all, the JAVA language only contains more than fifty keywords (keyword) and dozens of operators (operator), coupled with the JAVA syntax (syntax) is also very simple, so the average person can quickly learn the JAVA language.

2. Learning Object-Oriented Thinking

Learning the language does not mean that you can design a good object-oriented system architecture. To become an object-oriented expert, you often need to:

(1) read more books on the subject;

(2) observe other people's programs;

(3) write more programs.

In short, six words--see more, learn more, practice more.

3. Learning API

After learning the JAVA language, you also need to learn some APIs to write useful programs.JAVA's APIs are very numerous, and you must plan a learning path so that you don't get lost in the vast sea of APIs.

The essential APIs include: IO, New IO, Collection Framework, Network, RMI, JAXP, and so on.

4. Learning the usage of development tools

Only using JDK, it is very difficult to write a large program, so usually programmers will use JBuilder/VisualAge/VisualCafe and other tools.

PHP applications:

1, server-side scripting.

This is the most traditional and primary target area for PHP. To do this you need three things:

A, PHP parser (CGI or server module),

B, web server,

C, web browser.

PHP needs to be installed and configured while the web server is running,

and then a web browser can be used to access the output of the PHP program, i.e., to view the server-side PHP pages.

If you are just experimenting with PHP programming, all of this can be run on your own home computer.

2. Command line scripting.

You can write a PHP script and not need any server or browser to run it.

In this way, only the PHP parser is needed to execute it.

This usage is ideal for scripts that rely on cron (Unix or Linux environments)

or Task Scheduler (Windows environments) to run on a daily basis.

These scripts can also be used to process simple text.

3. Write desktop applications.

PHP may not be the best language for desktop applications with graphical interfaces,

but if a user is very proficient in PHP and wants to use some of the advanced features of PHP in a client application,

you can write those programs using PHP-GTK. With this approach, it is also possible to write cross-platform applications.

PHP-GTK is an extension to PHP that is not included in commonly distributed PHP packages.

If you are interested in PHP-GTK, please visit its website for more information.

4. The PHP application area can be extended to an even wider range:

PHP

also supports services utilizing protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (for Windows environments), and countless others. Raw network ports can also be opened, allowing any other protocol to work together.PHP

Supports WDDX complex data exchange with all web development languages. As for interconnections, PHP already supports instant connections to Java objects and can freely use them as PHP

objects. Remote objects can even be accessed using our CORBA extension library.PHP has extremely efficient text processing features, supporting everything from POSIX extensions or Perl regular expressions to XML

document parsing. To parse and access XML documents, PHP 4 supports the SAX and DOM standards, and can also use the XSLT extension library to transform XML documents. PHP 5 extends its XML capabilities by standardizing all XML extensions based on the robust

libxm2, and adding SimpleXML and XMLReader support.

5. If you extend the PHP application area to e-commerce.

Will find its Cybercash payment, CyberMUT, VeriSign Payflow Pro

and MCVE functions very useful for online transaction programs.

6. In addition, there are many other interesting extensions to the library.

For example: mnoGoSearch search engine functions, IRC gateway functions,

Multiple compression tools (gzip, bz2), calendar conversion, translation ......

Java applications

1. Database

Connectivity) provides a unified interface to connect to a variety of relational databases , as a data source , you can provide unified access to a variety of relational databases , which consists of a set of classes and interfaces written in the Java language.JDBC provides a standard API for tools/database developers , whereby more advanced tools and interfaces that enable database developers to write database applications in pure Java

API, while JDBC is also a trademarked name.

2. EJB (Enterprise JavaBeans) makes it easy for developers to create, deploy, and manage cross-platform component-based enterprise applications.

3. Java RMI (Java Remote Method

Invocation) is used to develop distributed Java applications. A Java object's methods can be invoked by a remote Java virtual machine. In this way, remote method activation can occur on both ends of the peer, or between the client and the server, as long as both applications are written in Java.

4. Java IDL (Java Interface Definition Language) provides seamless interoperability with CORBA (Common Object

Request Broker Architecture). This allows Java to integrate heterogeneous business information resources.

5. JNDI (Java Naming and Directory

Interface) provides a unified and seamless connection from the Java platform. This interface shields the various naming and directory services used by enterprise networks.

6. JMAPI (Java Management API) provides a rich set of objects and methods for the development of system, network, and service management on heterogeneous networks.

7. JMS (Java Message

Service) provides enterprise messaging services such as reliable message queues, publish and subscribe communications, and all aspects of push and pull (Push/Pull) technology.

8. JTS (Java transaction

Service) provides access to open standards for transaction processing resources , these transaction processing resources include transaction processing applications , transaction processing management and monitoring .

9. JMF (Java Media Framework

API), she can help developers put audio, video, and some other time-based media into Java applications or applet applets to provide multimedia developers with tools to capture, playback , codecs , etc., is an elastic, cross-platform multimedia solution.

10. Annotation (Java

Annotation), in the released JDK1.5 (tiger) to add a new feature called Annotation. Annotation provides a mechanism for linking program elements such as classes, methods, properties, parameters, local variables, packages, and metadata. to the metadata. This allows the compiler to store the metadata in a Class file. This allows the virtual machine and other objects to decide how to use these program elements or change their behavior based on this metadata.

Also of interest in Java technology is JavaBeans, an open-standard component architecture that is platform-independent but uses the Java language. A JavaBean is a Java class that satisfies the JavaBeans specification and usually defines a real-world thing or concept. The main features of a JavaBean include properties, methods, and events. Typically, a JavaBean can be manipulated visually in a development environment that supports the JavaBeans specification, such as Sun

Java Studio and IBM VisualAge for

Java, or a new JavaBean can be constructed using a JavaBean.Advantages of JavaBeans also lies in the portability that Java brings. Now, EJB

(Enterprise JavaBeans)

extends the JavaBean concept to the Java server-side component architecture, a model that supports multi-tier distributed object applications. In addition to JavaBeans, typical component architectures are DCOM and CORBA, and an in-depth discussion of these component architectures is beyond the scope of this book.

11. javaFX Sun has just released an official version of its JavaFX technology, which enables you to develop Rich Internet Applications (RIAs) using the JavaFX programming language. javaFX

The Script programming language (hereafter referred to as JavaFX) is a declarative, statictyped (or static-typed) programming language developed by Sun Microsystems. The JavaFX programming language (hereafter referred to as JavaFX) is a declarative, staticallytyped scripting language developed by Sun Microsystems.The JavaFX technology has a promising future, including the ability to make direct calls to the Java

API. Because JavaFXScript is statically typed, it also has structured code, reusability, and encapsulation, such as packages, classes, inheritance, and separate compilation and distribution units, features that make it possible to create and manage large programs using Java technology.

12. JMX (Java Management Extensions) is a framework for embedding

management functionality into applications, devices, systems, etc. JMX provides the flexibility to develop seamless

integration across a range of heterogeneous operating system platforms, system architectures, and network transport protocols. JMX provides the flexibility to develop seamlessly

integrated system, network and service management applications across a range of heterogeneous operating system platforms and network transport protocols.

13.JPA (Java Persistence API), JPA through the JDK

5.0 annotations or XML describes the object-relational table mapping relationships, and run-time entity object persistence to the database.

java-see

List of Computer Science Courses

JNI (Java Native Interface) Java Native Interface, which enables the use of other languages to implement certain specific features of Java.