基于Web开发技术实现PHP调用Java类研究  被引量:2

The Practice Research of PHP Calling Java Class Based on Web Technology

在线阅读下载全文

作  者:余杨奎 

机构地区:[1]湛江开放大学理工教研室,广东湛江524003

出  处:《软件导刊》2018年第3期121-123,共3页Software Guide

基  金:湛江市科学技术局重大科技专项项目(2015A01009)

摘  要:在"互联网+"时代,Web开发技术日新月异,平台开发不再依靠同一种Web开发技术,跨平台调用数据也屡见不鲜。为提高PHP的跨平台性和扩展性,通过PHP和Java桥接技术,真正实现Web三层架构。针对PHP和Java在技术引用上存在互补的特点,利用php-Java-bridge桥接方式,使用PHP程序调用jar里的Java类以判断Java版本、服务器操作系统以及操作系统版本,同时使用PHP程序调用自定义jar类的Reducefloat方法,完成减法运算。将两种技术有效结合起来,使通过PHP开发新接口程序需要调用Java方法时,可以减少对原有服务端程序的修改,为PHP开发技术的跨平台性和扩展性提供了技术论证。"Internet +" times, change rapidly of Web development technology,platform development no longer rely on the same kind of Web development technology, It is often seen that called cross platform data. In order to improve the scalability and PHP cross platform, through PHP and Java bridging PHP technology, realize the three layer structure of Web for PHP and Java, there is a complementary characteristic in the technology reference, using php-Java-bridge bridge, using the PHP program called jar's Java class to determine the Java version, the server operating system and operating system version. The Reducefloat method also use a custom jar class called PHP program, complete the subtraction operation. The two techniques are effectively combined, through the development of new PHP interface program to call the Java method, can be reduced to the original server program changes, provide technical demonstration of cross platform and scalability of PHP development technology.

关 键 词:PHP 环境变量 自定义类 桥接 

分 类 号:TP319[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象