I am using Google App Engine PHP SDK for Windows v1.8.8 and would like to use jQuery for client-side validation and Ajax interaction with a server-side Cloud SQL database. I haven't tried using it yet, but given the difficulties of client-side debugging, I thought I should ask some simple questions that I have not seen definitively answered anywhere:
Does the Google App Engine PHP SDK support jQuery natively?
Is there a jQuery file in the SDK that needs to be included in my scripts?
If I need to download a jQuery library, what would be a good choice?
Thank you for any information you can provide.
All of the App Engine SDKs are completely agnostic to client-side JavaScript frameworks. Use whatever you'd like. There's no direct notion of 'native' support.
When you deploy, you're welcome to use use as a CDN (Content Distribution Network) for jQuery. See https://developers.google.com/speed/libraries/devguide#jquery for supported versions of jQuery.
Related
I am familiar with phonegap framework which convert html & jquery code to native app. But it does not support php. So i am looking for alternative.
with Zend Studio 10 you can make your app using PHP
Cloud Connected Mobile app is new entry for PHP Developers to make native apps(android, blackberry, windows phone) with just SINGLE click.
Zend CCM link
PHP is a server side language while jQuery and html being client side. What I mean is this that the PHP script is being interpreted on the server using the PHP plugin and compiler and so if it has to run on phone it need to be compiled in the phone with the required plugins.
Seems impossible to now because of that the PHP compiler is not available for android and for making such you should be able to port it to android.
Which I think takes a lot of time and digging the PHP compiler sources.
In my personal view, do not use a language designed specifically for web server-side purposes on a web client. Everything you can do with PHP locally on a phone you can also do with Javascript, and usually much easier because of its tight integration with the browser.
That said, there is a PHP for Android project which might provide what you want.
are there any C++ version for PHP Snoopy?
Snoopy is a PHP class that provides the functionality of a web-browser.
http://sourceforge.net/projects/snoopy/
The closest pure C++ solution I know is people that have written there own browser automation or scraping using Qt and Webkit, though there doesn't seem to be a library you could interface directly with. Most of the code snippets that are posted using the Python binding to Qt and Webkit.
You could try using phantomjs directly as opposed to through its Javascript API.
I'm planning to build a Web App that would do massive use of AJAX and JavaScript, and I want to use PHP as the Server-Side language, with MySQL for the DataBase.
I found Raxan, and it looked really good, mainly because it would save me a lot of time with it's very easy integration with jQuery and AJAX calls. However, the project do not seems very alive or stable, and the forum is almos desert.
So, I would like to know what is the best framework suitable for a Web App that will do everything in a single page through AJAX calls.
PS: If it matters, I will use jQuery Mobile, and that's why everything will be in the same page.
Honestly, there isn't much to "PHP + AJAX" integrations. It's the same as "PHP + HTML". I would recommend you find a good PHP framework and a good JavaScript framework instead of looking for one that does both because they are always a mess since they are built by people that don't understand separating concerns.
I would recommend you having a look at Contao, but more information on what other features you want from a CMS are more important.
From the perspective of what you've described, Contao uses Mootools but can be mixed in with jQuery.
The core part of ajax queries is handled by an PHP executable in the root of the web server called ajax.php . This allows modules/widgets for FE or BE to communicate via AJAX calls and all nicely built in.
Don't worry about the Mootools part, since you could make a request using jQuery and it'll work seemsly with Contao and Mootools.
I am using Eclipse to develop a website in html, css, js, ajax for client and jsp, servlets in the server side, using mysql. I want to write some modules in php. Is it possible to integrate php code in the architecture and run on tomcat ?
You could use Quercus or maybe create a bridge (effectively messaging) between a server running your PHP code and the Java application. I'd consider carefully if this is the best way to architect your application, or whether the php modules should be rewritten for Java.
Yes, look at PHP/Java Bridge http://php-java-bridge.sourceforge.net/pjb/
There is also a PHP runtime written in Java, but I don't remember the name at the moment.
How can i run a PHP script on the Google App Engine?
I know that Java and Python are supported. Is PHP possible?
The Google App Engine does not support php natively, even though it remains at the top of the wish list on the GAE issue tracker.
However, you should be able to run php scripts using a Java implementation of PHP, such as Quercus. You may want to check out the following article for further reading on the topic:
Quercus on the Google App Engine
PHP for App Engine is now in Limited Preview:
https://developers.google.com/appengine/docs/php/
You can just about using Quercus but it's not a full implementation last time I checked. It basically compiles your PHP down to Java and runs that through the Java Runtime.
My opinion: it's a hack. You'll probably find thing breaking and you'll probably have a really lousy experience with it.
But it might work for you so feel free to try it out.