views:

151

answers:

2

I want to create an application in google app engine using php,
Is there any way to login in to my google account using php and create an application dynamically.

+3  A: 

Currently, the only way I know to create an app engine app via PHP is through Quercus, the PHP implementation on top of the JVM, as per this post.

Edit: that was "create an app" in the sensible sense of the words -- the running code, simple configuration, data files, &c, that together make up an app -- back when the question was short and ambiguous.

As the question has now been clarified as being instead a quest to violate google's terms and conditions by automating an administrative operation in breach of section 2.3 ("""2.3. You agree not to (a) access (or attempt to access) the administrative interface of the Service by any means other than through the interface that is provided by Google in connection with the Service"""), the case is very different -- my response to that request I'll leave in a comment on this answer.

Alex Martelli
i dont want to run php on google app engine.i want to create application using php.
Srikanth
@Alex Martelli did u understood my question?
Srikanth
Oh, I see, you want to automate steps that Google wants you to keep manual, i.e., you want to violate google's terms and conditions. It's technically possible, for a while, if you use a method no googler has yet thought about (since I'm a googler, any suggestion from me couldn't possibly be ones no googler has yet thought about;-), then google will find out, block your chosen attack vector, rinse, repeat (until you give up or the FBI gets interested, as it finally has recently in spam email). Programming language choice's not the key issue here.
Alex Martelli
A: 

It seems Google provides no way to automatically create apps on their App Engine.

But as long as you can do it from a browser, you can simulate the app registering process with http queries, using cURL for instance, in PHP.

cURL allows you to send http queries, optionnally with POST data, cookies, etc...you can also set a user-agent. You can pretty much emulate every browser's behaviours. Here, you will have to make a POST query containing the data you're supposed to have filled in the app registering form.

More on cURL on the PHP doc, and there's even a StackOverflow tag for it.

Nicolas