Bulk Google PageRank check with PHP (updated October 2011)
Checking PageRank of the pages gives you an idea, how they qualify in eyes of Google. This is also one of the main tasks you want to check when you build backlinks to your sites. Higher is the PR on the incoming page, more it affects to bring you on the t...
» Read more
Spintax Class for PHP With Recursive Unlimited Nests and Alternative Syntax Support
I made a small research on Google and found a PHP class for the task but it had some problems plus for my purpose I wanted to have different spintax solved to keep for example PHP code preserved on text after spin....
» Read more
PHP on Google App engine
Even after several years of public requests for opening App Engine ports for PHP programmers Google hasnt done much for it. But as well as Ruby is working on App Engine with Java, so is PHP possible using Caucho's Quercus Java implementation. Combining AppEngine and Quercus is little tricky at the moment. Information is spread all over the net and often is not using the latest packages. Thats why you may find next easy steps welcome.
Components needed
- Java Development Kit (1.6)
- Google Application Engine Software Development Kit (1.5.5)
- Quercus & Resin Java-PHP5 bridge by Caucho (4.0.18)
Downloads
- Download JDK6 if you dont have it. Apple has its own fork of JDK for MacOS X and version 6 is already on basic operating system installation. For earlier versions you get the most recent help from Google.
- Download custom PHP on Google App Engine installation package. Unzip to some place on your computer. Package size is around 58.2Mb.
You can get all components on package separately, but if you want easy way, I recommend downloading custom installation package for hassle free deployment. In case you want to make your own setup, its all here:
- Download AppEngine. Choose Java version instead of Python version.
- Download Quercus. Get the latest war or source.
- See some instruction from this blog to make them work together.
Configure & Deploy
With JDK6 you need to follow their install instructions. Most probably you will have JDK already installed on your computer. Then follow these steps:
- Create your application on Google: http://appengine.google.com/. Take the name of the application for the next steps.
- Get PHP on Google App Engine and upzip if you didnt already
- Open ./war/appengine-web.xml file from unzipped directory and edit 3rd line:
to contain your application id.<application>my-application-id</application> - Open console and go to the unzipped directory called "blankapp":
cd /path/to/blankapp/
- Run the deployment code for mac/linux:
or run the deployment code for windows:sh ./appengine-java-sdk-1.5.5/bin/appcfg.sh \\ --enable_jar_splitting update ./war./appengine-java-sdk-1.5.5/bin/appcfg.cmd \\ --enable_jar_splitting update ./war - Give your Google account username and password.
- Point your browser to your application root:
http://my-application-id.appspot.com
And thats it! See working example from: http://blankapp.appspot.com and notice the content of phpinfo() as an evidence of successful operation. Of course now you want to create the greatest PHP application on planet using scaleable, robust and secure Google clouds. Please note that there are some major and lots of minor restriction on Google platform you cannot do. You probably need to test & test & test to know all the small quirks, but hey, that is programmer's life! Happy learning and coding!
Current News
MyAjaxApp Makes It Easier than Ever To Build Web Services - Albany Times Union
MyAjaxApp Makes It Easier than Ever To Build Web ServicesAlbany Times UnionThis system removes the need to know PHP, Ruby or ...
Thu, 17 May 2012 07:14:54 -0700PHP Objects, Patterns and Practice 3rd Ed - iProgrammer
PHP Objects, Patterns and Practice 3rd EdiProgrammerThis an excellent book and, if you have always wanted to find out about ...
Tue, 15 May 2012 05:59:31 -0700MyAjaxApp Makes It Easier than Ever To Build Web Services - San Antonio Express
MyAjaxApp Makes It Easier than Ever To Build Web ServicesSan Antonio ExpressThis system removes the need to know PHP, Ruby or ...
Thu, 17 May 2012 07:12:08 -0700