Use googleapp to host your PHP code (eclipse Development Environment)

Source: Internet
Author: User

Google released {
Function onclick ()
{
Pagetracker. _ trackpageview ('/outgoing/code.google.com/appengine /? Referer = ');
}
} "Href =" http://code.google.com/appengine/ "> Google App Engine (Gae ). This is a free app engine host that allows you to use up to 10 applications for free) there are 1 GB disk space and 43.6 CPU hours with 10 Gb upload and 10 Gb download bandwidth, as well as 2000 emails. If you need more places, you have to pay.

Gae has recently released official {
Function onclick ()
{
Pagetracker. _ trackpageview ('/outgoing/googleappengine.blogspot.com/2009/04/seriously-this-time-new-?age-on-app.html? Referer = ');
}
} "Href =" http://googleappengine.blogspot.com/2009/04/seriously-this-time-new-language-on-app.html "target =" _ blank "> supports Java notifications. As a result, various blog comments began on the Internet, and some others ran PHP programs in Google App Engine, which is incredible. Because Gae currently does not support PHP.

In fact, they use {
Function onclick ()
{
Pagetracker. _ trackpageview ('/outgoing/www.caucho.com/resin-3.0/quercus /? Referer = ');
}
} "Href =" http://www.caucho.com/resin-3.0/quercus/ "> Quercus are essentially a 100% PHP engine implemented in Java (JDK 1.5 is required), so, you can also run php scripts as long as you integrate Quercus into your Gae.

 

The general steps are as follows:

1. Delete {
Function onclick ()
{
Pagetracker. _ trackpageview ('/outgoing/appengine.google.com /? Referer = ');
}
} "Href =" http://appengine.google.com/"> free account. It may take several minutes to receive the verification code text message. Don't worry.
2. Download this file to your local computer.
3. Edit the XML tag of the application in war/WEB-INF/appengine-web.xml and change its name to the name you registered. For example:

<Application> where23 </Application>

4. Last ,{
Function onclick ()
{
Pagetracker. _ trackpageview ('/outgoing/code.google.com/appengine/docs/java/gettingstarted/uploading.html? Referer = ');
}
} "Href =" http://code.google.com/appengine/docs/java/gettingstarted/uploading.html "> upload your app. (JDK and appengine-Java-SDK must be installed ).

D:/appengine-Java-SDK/bin/appcfg. CMD update C:/phpwithjava/war/

5. Use eclipse for development

5.1 install eclipse Google plug-in (http://code.google.com/intl/zh-CN/eclipse/docs/install-eclipse-3.4.html ):

Http://dl.google.com/eclipse/plugin/3.4 (depending on your eclipse version, my version is 3.5)

5.2. Create a new "Web application projectfolder" in eclipse and replace "src" and "war" in the two folders decompressed by "“phpwithjava.rar" with the "src" and "war" automatically generated by eclispe ".

5.3 after the development is complete, click the "deploy App Engine Project" button in eclipse to upload the project to the specified application-id.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.