是否可以在Google App Engine上使用混合PHP + Java Web应用程序? [英] is it possible to have a hybrid PHP+Java web application on Google App Engine?

查看:70
本文介绍了是否可以在Google App Engine上使用混合PHP + Java Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个应用程序,向包含Web表单的网站提交相同/相似的数据。这些网站使用PHP脚本...



我有一个php脚本,它以我需要的方式将数据提交给这些表单。我想要做的是,围绕此代码设计一个完整的Web应用程序......我试图获得等效的Java代码,它完成了PHP代码的功能,但无法获得这样的代码...

由于Google App Engine支持PHP的Quercus框架,我现在的想法是,使用PHP代码将表单实际提交到他们的动作,以及其他应用程序(跟踪所有提交并执行其他操作例如login / logout ...)在Java中。



这需要一些方法,我可以将相关表单参数从Java代码传递到PHP脚本,然后用PHP脚本将每个提交的响应返回给java代码。



这样的应用程序是可行的吗?请注意,我希望使用Google App Engine来达到此目的。

解决方案

它应该可以与Quercus一起使用。我们部署了一个具有Java / Clojure后端处理器的Python应用程序,但这两种语言对于GAE都是原生的。使用PHP将是一个严重的痛苦,并不值得这一切。我建议你只学习Python,比在GAE上使用Quercus更快掌握它。

如果你也追求PHP,那么坚持你的LAMP知识。我建议你现在就做!



免责声明:我想在AppEngine上使用JRuby,但是我遇到了很多困难(再加上你必须知道GAE ),所以我拿起了Python


I want to create an application that submits same/similar data to sites containing web forms. These sites use PHP scripts...

I have a php script with me, that submits data in the manner that i require, to such forms. What I want to do is, design an entire web app around this code... I tried to obtain equivalent java code that does what the php code is doing, but could not obtain such code...

Since Google App Engine supports Quercus framework for PHP, what I am thinking now is, use the PHP code for actual submission of forms to their actions, and rest of application (that tracks all submissions and does other stuff like login/logout...) is in Java.

This would require some method by which I can pass the relevant form parameters from Java code to the PHP script, then some way for the php script to return the response of each submission back to the java code.

Is such an application doable? Pls keep in mind that I want to use Google App Engine for this purpose.

解决方案

It should be doable with Quercus. We deploy a Python app that has some Java/Clojure backend processors but both languages are "native" to GAE. Using PHP will be a serious pain and not worth it all. I suggest that you just learn Python you will master it faster than using Quercus on GAE.

If you also go after PHP you stick to your LAMP knowledge. I suggest thay you do now!

Disclaimer: I wanted to use JRuby on AppEngine but I had a lot of difficulties (plus you have to know how everything works optimally on GAE) so I took up Python

这篇关于是否可以在Google App Engine上使用混合PHP + Java Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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