It depends on the complexity that you have in the server side. Usually a Flash game do not need a complex business logic in the server side, I would use PHP in this case, Java otherwise.
If you are going to host this application, Java hosts are way more expensive than PHP ones also.
Yeah, I jumped from java to AS3 without any problem:D The one big advantage of php is that almost every server has it and with java is harder to find some reliable hostings. PHP could be also easier and little faster to develop some simple backend.
在对基于 Web 的托管和开发的支持方面,您会发现 PHP 更合适,因为大多数廉价托管公司都会默认安装 PHP。此外,PHP 是专门针对 Web 开发的,在大多数情况下,预编译的 Web 应用程序并不是最佳选择。 PHP 在这方面的部署非常简单(您只需将文件移动到您的服务器上)。就对 Web 开发的支持和基于 Web 的问题的具体示例以及对 PHP 和部署的支持相结合而言,使用 PHP 会更好。
In terms of a similar programming experience one will find more comfort in Java than PHP. The main difference is that PHP is dynamic and the other two are compiled. The consequence is that debugging of Java and AS3 happens when it is being compiled, and in PHP when it runs. You also do not deal with predefining types in PHP for that matter and can totally ignore Object Orientation in it. Java and AS3 are more strict and require all these things. So in terms of choosing a language, Java will be more familiar (and easier) to pick up for a AS3 developer.
In terms of support for web based hosting and development, you'll find PHP more suitable since a majority of cheap hosting companies will have those installed by default. In addition, PHP was developed especially with the web in mind where precompiled web applications are not the best option in most cases. PHP in this regard deploys extremely easy (you just move the files onto your server). In terms of support for webdevelopment and specific examples for web based problems in combination with the support for PHP and deployment, you'll be better off with PHP.
Both have integration libraries, BlazeDS for Java, and AMFPHP for PHP, I haven't tried out the PHP integration I know from experience that Blaze is INCREDIBLY faster than XML or JSON for moving data back and forth. Assuming they're fairly equal then the question is where is it easier to find hosting, and which is better for you to develop and maintain.
发布评论
评论(5)
这取决于服务器端的复杂性。通常Flash游戏在服务器端不需要复杂的业务逻辑,在这种情况下我会使用PHP,否则使用Java。
如果您要托管此应用程序,Java 主机也比 PHP 主机贵得多。
It depends on the complexity that you have in the server side. Usually a Flash game do not need a complex business logic in the server side, I would use PHP in this case, Java otherwise.
If you are going to host this application, Java hosts are way more expensive than PHP ones also.
据我了解此处,Actionscript 更像 JavaScript,而不< /em> Java。
PHP 和 Java 都非常适合作为游戏的后端。我更喜欢 PHP,但我有偏见。
但是,如果您希望留在熟悉的领域,您应该考虑使用 Node.js,它基本上是服务器端的JavaScript。
From what I understand here, Actionscript is more like JavaScript, not Java.
PHP and Java are both very suitable for a back-end to your game. I prefer PHP, but I am biased.
However, you are looking to stay within familiar territory, you should look at using Node.js, which is basically server-side JavaScript.
是的,我从 java 跳到 AS3 没有任何问题:D php 的一大优点是几乎每个服务器都有它,而使用 java 更难找到一些可靠的托管。 PHP 也可以更容易、更快地开发一些简单的后端。
Yeah, I jumped from java to AS3 without any problem:D The one big advantage of php is that almost every server has it and with java is harder to find some reliable hostings. PHP could be also easier and little faster to develop some simple backend.
就类似的编程体验而言,Java 比 PHP 更舒适。主要区别在于PHP是动态的,而其他两者是编译的。结果是 Java 和 AS3 的调试发生在编译时,而 PHP 的调试发生在运行时。您也不必处理 PHP 中的预定义类型,并且可以完全忽略其中的面向对象。 Java 和 AS3 更严格并且需要所有这些东西。因此,在选择语言方面,Java 对于 AS3 开发人员来说会更熟悉(也更容易)。
在对基于 Web 的托管和开发的支持方面,您会发现 PHP 更合适,因为大多数廉价托管公司都会默认安装 PHP。此外,PHP 是专门针对 Web 开发的,在大多数情况下,预编译的 Web 应用程序并不是最佳选择。 PHP 在这方面的部署非常简单(您只需将文件移动到您的服务器上)。就对 Web 开发的支持和基于 Web 的问题的具体示例以及对 PHP 和部署的支持相结合而言,使用 PHP 会更好。
In terms of a similar programming experience one will find more comfort in Java than PHP. The main difference is that PHP is dynamic and the other two are compiled. The consequence is that debugging of Java and AS3 happens when it is being compiled, and in PHP when it runs. You also do not deal with predefining types in PHP for that matter and can totally ignore Object Orientation in it. Java and AS3 are more strict and require all these things. So in terms of choosing a language, Java will be more familiar (and easier) to pick up for a AS3 developer.
In terms of support for web based hosting and development, you'll find PHP more suitable since a majority of cheap hosting companies will have those installed by default. In addition, PHP was developed especially with the web in mind where precompiled web applications are not the best option in most cases. PHP in this regard deploys extremely easy (you just move the files onto your server). In terms of support for webdevelopment and specific examples for web based problems in combination with the support for PHP and deployment, you'll be better off with PHP.
两者都有集成库,用于 Java 的 BlazeDS 和用于 PHP 的 AMFPHP,我还没有尝试过 PHP 集成,我从经验中知道,在来回移动数据方面,Blaze 比 XML 或 JSON 快得多。假设它们相当平等,那么问题是哪里更容易找到托管,以及哪个更适合您开发和维护。
Both have integration libraries, BlazeDS for Java, and AMFPHP for PHP, I haven't tried out the PHP integration I know from experience that Blaze is INCREDIBLY faster than XML or JSON for moving data back and forth. Assuming they're fairly equal then the question is where is it easier to find hosting, and which is better for you to develop and maintain.