IBM Worklight 6.0 - 如何包括PHP文件? [英] IBM Worklight 6.0 - How to include a PHP file?

查看:106
本文介绍了IBM Worklight 6.0 - 如何包括PHP文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Eclipse Juno中使用IBM Worklight v6开发具有HTML5,CSS和JavaScript的移动应用程序。

I am trying to develop a mobile app with HTML5, CSS and JavaScript in Eclipse Juno with IBM Worklight v6.

对于后端,如果我想使用PHP文件连接到数据库,在哪个文件夹应该包括?
之后数据库会连接到我的Worklight项目?

For the back-end if I want to use PHP files to connect to database, in which folder should that be included? After that will the database be connected to my Worklight project?

推荐答案

br>
Worklight项目不支持PHP。

It doesn't work that way.
Worklight projects do not support PHP.

如果要通过Worklight应用程序连接到数据库,则需要使用Worklight适配器。具体来说,SQL适配器:

If you want to connect to a database via your Worklight application, you need to use Worklight Adapters. Specifically, the SQL adapter:

  • SQL adapter training module
  • Associated sample project

或者,您可以将PHP脚本放置在托管数据库的同一个Web服务器上(或者您的网络拓扑是...),它将监听应用程序发送给它的传入请求,再次,Worklight适配器。具体来说,HTTP适配器:

Alternatively, you may place your PHP script on the same web server hosting the database (or however your network topology is...), and it will listen to incoming requests that you application will send to it using, again, Worklight Adapters. Specifically, the HTTP adapter:

  • HTTP adapter training module
  • Associated sample project

这篇关于IBM Worklight 6.0 - 如何包括PHP文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆