Home  >  Article  >  Backend Development  >  photoshop cs5 official Chinese cracked version download 10 tips for PHP scripts 7

photoshop cs5 official Chinese cracked version download 10 tips for PHP scripts 7

WBOY
WBOYOriginal
2016-07-29 08:33:221219browse

PHP and Java
Another great feature of PHP is its ability to call methods on existing Java objects. This feature allows you to integrate PHP into existing Java-based applications. If you're promoting PHP in your workplace, you've got something to brag about because Java is everywhere.
In order to use this feature, you need to install a Java Virtual Machine (JVM) on the server. If you plan to install (or have installed) a JDK from Sun, Kaffe, IBM or Blackdown, you are now on the right track.
When you configure PHP, you will need to add the --with-java parameter to the configuration directive and then modify your php.ini file. The following lines are usually modified in php.ini:
[Java]
java.library.path=/path/to/library
java.class.path=/classpath/
extensi/to/extensions
extension=libphp_java. so
However, please note that these modifications above all depend on your installation type. You should read the README file in the ext/java directory of your PHP installation to learn more about Java feature settings.
Here is a simple example: a PHP script that creates a new Java object. The script will then get certain Java properties and print them out. This is also a very good COM example.
$system = new Java("java.lang.System");
echo "

Java version = " . $system->getProperty("java.version") . "echo "Java vendor = " . $system->getProperty("java.vendor") . "

";
?>
If you already have knowledge of Java, then you Be sure to help developers do this project well. These types of integration features are bound to be key to the future development and acceptance of PHP, so the more people doing these jobs, the better the future of PHP will be.

The above introduces photoshop cs5 official Chinese cracked version download 10 tips for PHP scripts 7, including photoshop cs5 official Chinese cracked version download content, I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn