[google-appengine] Re: PHP on GAE using Quercus
Hi, Finally I pushed my local work to GitHub. See HOWTO to reproduce the attempt. http://github.com/moriyoshi/quercus-gae/ Enjoy! Moriyoshi On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi wrote: > Hi, > > Probably this is not a news, but I couldn't find a similar attempt so > here goes... I managed to get (patched) Quercus [1] to work on GAE. > This means now you can run considerable number of PHP application. > > I'm going to post further details to my blog (http://d.hatena.ne.jp/ > moriyoshi/ - mostly in Japanese). > > Hope you are interested. > Moriyoshi > > [1] http://quercus.caucho.com/ > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: PHP on GAE using Quercus
Hi moriyoshi, Awesome work! There are a few modules that are missing from your com.caucho.quercus.QuercusModule file: com.caucho.quercus.lib.curl.CurlModule com.caucho.quercus.lib.date.DateModule com.caucho.quercus.lib.file.FileModule com.caucho.quercus.lib.gettext.GettextModule com.caucho.quercus.lib.json.JsonModule com.caucho.quercus.lib.i18n.MbstringModule com.caucho.quercus.lib.mcrypt.McryptModule com.caucho.quercus.lib.reflection.ReflectionModule com.caucho.quercus.lib.string.StringModule com.caucho.quercus.lib.i18n.UnicodeModule com.caucho.quercus.lib.xml.DomModule com.caucho.quercus.lib.xml.XmlModule com.caucho.quercus.lib.xml.XMLWriterModule com.caucho.quercus.lib.zip.ZipModule com.caucho.quercus.lib.zlib.ZlibModule com.caucho.quercus.lib.jms.JMSModule com.caucho.quercus.lib.pdf.PDFModule com.caucho.quercus.lib.bam.BamModule Most of them are essential. Some don't apply in the GAE environment. Also, I think you should include the com.caucho.quercus.QuercusClass file. That file lists Java classes that back the equivalent PHP classes. On Apr 10, 10:28 am, Moriyoshi Koizumi wrote: > Hi, > > Finally I pushed my local work to GitHub. See HOWTO to reproduce the attempt. > > http://github.com/moriyoshi/quercus-gae/ > > Enjoy! > Moriyoshi > > On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi wrote: > > Hi, > > > Probably this is not a news, but I couldn't find a similar attempt so > > here goes... I managed to get (patched) Quercus [1] to work on GAE. > > This means now you can run considerable number of PHP application. > > > I'm going to post further details to my blog (http://d.hatena.ne.jp/ > > moriyoshi/ - mostly in Japanese). > > > Hope you are interested. > > Moriyoshi > > > [1]http://quercus.caucho.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: PHP on GAE using Quercus
Hi All, See details on how to Run PHP on Google App Engine using Quercus http://www.webdigi.co.uk/blog/2009/run-php-on-the-google-app-engine/ Just download the file in the link and you can run PHP on app engine in minutes. Also see http://phpwithjava.appspot.com/webdigi.php Regards On Apr 10, 6:28 pm, Moriyoshi Koizumi wrote: > Hi, > > Finally I pushed my local work to GitHub. See HOWTO to reproduce the attempt. > > http://github.com/moriyoshi/quercus-gae/ > > Enjoy! > Moriyoshi > > On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi wrote: > > Hi, > > > Probably this is not a news, but I couldn't find a similar attempt so > > here goes... I managed to get (patched) Quercus [1] to work on GAE. > > This means now you can run considerable number of PHP application. > > > I'm going to post further details to my blog (http://d.hatena.ne.jp/ > > moriyoshi/ - mostly in Japanese). > > > Hope you are interested. > > Moriyoshi > > > [1]http://quercus.caucho.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: PHP on GAE using Quercus
Download the war folder to run PHP on the google app engine from here http://www.webdigi.co.uk/blog/2009/run-php-on-the-google-app-engine/ On Apr 10, 6:28 pm, Moriyoshi Koizumi wrote: > Hi, > > Finally I pushed my local work to GitHub. See HOWTO to reproduce the attempt. > > http://github.com/moriyoshi/quercus-gae/ > > Enjoy! > Moriyoshi > > On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi wrote: > > Hi, > > > Probably this is not a news, but I couldn't find a similar attempt so > > here goes... I managed to get (patched) Quercus [1] to work on GAE. > > This means now you can run considerable number of PHP application. > > > I'm going to post further details to my blog (http://d.hatena.ne.jp/ > > moriyoshi/ - mostly in Japanese). > > > Hope you are interested. > > Moriyoshi > > > [1]http://quercus.caucho.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: PHP on GAE using Quercus
Hi, Thanks for the heads-up. It seems I forgot to add these modules as they don't reside right under com/caucho/quercus/lib :) Moriyoshi On Tue, Apr 14, 2009 at 1:37 PM, diablonhn wrote: > > Hi moriyoshi, > > Awesome work! There are a few modules that are missing from your > com.caucho.quercus.QuercusModule file: > > com.caucho.quercus.lib.curl.CurlModule > com.caucho.quercus.lib.date.DateModule > com.caucho.quercus.lib.file.FileModule > com.caucho.quercus.lib.gettext.GettextModule > com.caucho.quercus.lib.json.JsonModule > com.caucho.quercus.lib.i18n.MbstringModule > com.caucho.quercus.lib.mcrypt.McryptModule > com.caucho.quercus.lib.reflection.ReflectionModule > com.caucho.quercus.lib.string.StringModule > com.caucho.quercus.lib.i18n.UnicodeModule > com.caucho.quercus.lib.xml.DomModule > com.caucho.quercus.lib.xml.XmlModule > com.caucho.quercus.lib.xml.XMLWriterModule > com.caucho.quercus.lib.zip.ZipModule > com.caucho.quercus.lib.zlib.ZlibModule > com.caucho.quercus.lib.jms.JMSModule > com.caucho.quercus.lib.pdf.PDFModule > com.caucho.quercus.lib.bam.BamModule > > Most of them are essential. Some don't apply in the GAE environment. > Also, I think you should include the > com.caucho.quercus.QuercusClass file. That file lists Java classes > that back the equivalent PHP classes. > > On Apr 10, 10:28 am, Moriyoshi Koizumi wrote: >> Hi, >> >> Finally I pushed my local work to GitHub. See HOWTO to reproduce the attempt. >> >> http://github.com/moriyoshi/quercus-gae/ >> >> Enjoy! >> Moriyoshi >> >> On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi wrote: >> > Hi, >> >> > Probably this is not a news, but I couldn't find a similar attempt so >> > here goes... I managed to get (patched) Quercus [1] to work on GAE. >> > This means now you can run considerable number of PHP application. >> >> > I'm going to post further details to my blog (http://d.hatena.ne.jp/ >> > moriyoshi/ - mostly in Japanese). >> >> > Hope you are interested. >> > Moriyoshi >> >> > [1]http://quercus.caucho.com/ > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: PHP on GAE using Quercus
Anybody successful using the datastore API directly from PHP with quercus ? => See here for all other good links: http://php-on-gae.appspot.com On 15 Apr., 03:03, Moriyoshi Koizumi wrote: > Hi, > > Thanks for the heads-up. It seems I forgot to add these modules as > they don't reside right under com/caucho/quercus/lib :) > > Moriyoshi > > > > On Tue, Apr 14, 2009 at 1:37 PM, diablonhn wrote: > > > Hi moriyoshi, > > > Awesome work! There are a few modules that are missing from your > > com.caucho.quercus.QuercusModule file: > > > com.caucho.quercus.lib.curl.CurlModule > > com.caucho.quercus.lib.date.DateModule > > com.caucho.quercus.lib.file.FileModule > > com.caucho.quercus.lib.gettext.GettextModule > > com.caucho.quercus.lib.json.JsonModule > > com.caucho.quercus.lib.i18n.MbstringModule > > com.caucho.quercus.lib.mcrypt.McryptModule > > com.caucho.quercus.lib.reflection.ReflectionModule > > com.caucho.quercus.lib.string.StringModule > > com.caucho.quercus.lib.i18n.UnicodeModule > > com.caucho.quercus.lib.xml.DomModule > > com.caucho.quercus.lib.xml.XmlModule > > com.caucho.quercus.lib.xml.XMLWriterModule > > com.caucho.quercus.lib.zip.ZipModule > > com.caucho.quercus.lib.zlib.ZlibModule > > com.caucho.quercus.lib.jms.JMSModule > > com.caucho.quercus.lib.pdf.PDFModule > > com.caucho.quercus.lib.bam.BamModule > > > Most of them are essential. Some don't apply in the GAE environment. > > Also, I think you should include the > > com.caucho.quercus.QuercusClass file. That file lists Java classes > > that back the equivalent PHP classes. > > > On Apr 10, 10:28 am, Moriyoshi Koizumi wrote: > >> Hi, > > >> Finally I pushed my local work to GitHub. See HOWTO to reproduce the > >> attempt. > > >>http://github.com/moriyoshi/quercus-gae/ > > >> Enjoy! > >> Moriyoshi > > >> On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi wrote: > >> > Hi, > > >> > Probably this is not a news, but I couldn't find a similar attempt so > >> > here goes... I managed to get (patched) Quercus [1] to work on GAE. > >> > This means now you can run considerable number of PHP application. > > >> > I'm going to post further details to my blog (http://d.hatena.ne.jp/ > >> > moriyoshi/ - mostly in Japanese). > > >> > Hope you are interested. > >> > Moriyoshi > > >> > [1]http://quercus.caucho.com/- Zitierten Text ausblenden - > > - Zitierten Text anzeigen - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: PHP on GAE using Quercus
I tried this code which I think should work.. any ideas? Looks like a quercus issue. import com.google.appengine.api.datastore; import com.google.appengine.api.datastore.Entity; import com.google.appengine.api.datastore.DatastoreServiceFactory; $data = array('test' => 1, 'test2' => 2); $entity = new Entity("MV_Storage_Php"); $entity->setProperty("value", serialize($data)); echo "KEY: ". (string)$entity->getKey(); // ok - unknown echo "VALUE: ". (string)$entity->getProperty("value"); // ok $dataService = DatastoreServiceFactory::getDatastoreService(); foreach($dataService->getActiveTransactions() as $t) { echo "TRANS: ". $t->getId(); // no transactions... } $dataService->put($entity); // NULL exception? echo $entity->getKey(); Read this: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary.html On Apr 16, 1:24 pm, ocb wrote: > Anybody successful using the datastore API directly from PHP with > quercus ? > > => See here for all other good links:http://php-on-gae.appspot.com > > On 15 Apr., 03:03, Moriyoshi Koizumi wrote: > > > Hi, > > > Thanks for the heads-up. It seems I forgot to add these modules as > > they don't reside right under com/caucho/quercus/lib :) > > > Moriyoshi > > > On Tue, Apr 14, 2009 at 1:37 PM, diablonhn > > wrote: > > > > Hi moriyoshi, > > > > Awesome work! There are a few modules that are missing from your > > > com.caucho.quercus.QuercusModule file: > > > > com.caucho.quercus.lib.curl.CurlModule > > > com.caucho.quercus.lib.date.DateModule > > > com.caucho.quercus.lib.file.FileModule > > > com.caucho.quercus.lib.gettext.GettextModule > > > com.caucho.quercus.lib.json.JsonModule > > > com.caucho.quercus.lib.i18n.MbstringModule > > > com.caucho.quercus.lib.mcrypt.McryptModule > > > com.caucho.quercus.lib.reflection.ReflectionModule > > > com.caucho.quercus.lib.string.StringModule > > > com.caucho.quercus.lib.i18n.UnicodeModule > > > com.caucho.quercus.lib.xml.DomModule > > > com.caucho.quercus.lib.xml.XmlModule > > > com.caucho.quercus.lib.xml.XMLWriterModule > > > com.caucho.quercus.lib.zip.ZipModule > > > com.caucho.quercus.lib.zlib.ZlibModule > > > com.caucho.quercus.lib.jms.JMSModule > > > com.caucho.quercus.lib.pdf.PDFModule > > > com.caucho.quercus.lib.bam.BamModule > > > > Most of them are essential. Some don't apply in the GAE environment. > > > Also, I think you should include the > > > com.caucho.quercus.QuercusClass file. That file lists Java classes > > > that back the equivalent PHP classes. > > > > On Apr 10, 10:28 am, Moriyoshi Koizumi wrote: > > >> Hi, > > > >> Finally I pushed my local work to GitHub. See HOWTO to reproduce the > > >> attempt. > > > >>http://github.com/moriyoshi/quercus-gae/ > > > >> Enjoy! > > >> Moriyoshi > > > >> On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi wrote: > > >> > Hi, > > > >> > Probably this is not a news, but I couldn't find a similar attempt so > > >> > here goes... I managed to get (patched) Quercus [1] to work on GAE. > > >> > This means now you can run considerable number of PHP application. > > > >> > I'm going to post further details to my blog (http://d.hatena.ne.jp/ > > >> > moriyoshi/ - mostly in Japanese). > > > >> > Hope you are interested. > > >> > Moriyoshi > > > >> > [1]http://quercus.caucho.com/-Zitierten Text ausblenden - > > > - Zitierten Text anzeigen - > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: PHP on GAE using Quercus
I've got the same error before. Thanks for confirmation. On 16 Apr., 21:09, jbondc wrote: > I tried this code which I think should work.. any ideas? Looks like a > quercus issue. > > import com.google.appengine.api.datastore; > import com.google.appengine.api.datastore.Entity; > import com.google.appengine.api.datastore.DatastoreServiceFactory; > > $data = array('test' => 1, > 'test2' => 2); > > $entity = new Entity("MV_Storage_Php"); > $entity->setProperty("value", serialize($data)); > > echo "KEY: ". (string)$entity->getKey(); // ok - unknown > echo "VALUE: ". (string)$entity->getProperty("value"); // ok > > $dataService = DatastoreServiceFactory::getDatastoreService(); > > foreach($dataService->getActiveTransactions() as $t) { > echo "TRANS: ". $t->getId(); // no transactions... > > } > > $dataService->put($entity); // NULL exception? > > echo $entity->getKey(); > > Read > this:http://code.google.com/appengine/docs/java/javadoc/com/google/appengi... > > On Apr 16, 1:24 pm, ocb wrote: > > > > > Anybody successful using the datastore API directly from PHP with > > quercus ? > > > => See here for all other good links:http://php-on-gae.appspot.com > > > On 15 Apr., 03:03, Moriyoshi Koizumi wrote: > > > > Hi, > > > > Thanks for the heads-up. It seems I forgot to add these modules as > > > they don't reside right under com/caucho/quercus/lib :) > > > > Moriyoshi > > > > On Tue, Apr 14, 2009 at 1:37 PM, diablonhn > > > wrote: > > > > > Hi moriyoshi, > > > > > Awesome work! There are a few modules that are missing from your > > > > com.caucho.quercus.QuercusModule file: > > > > > com.caucho.quercus.lib.curl.CurlModule > > > > com.caucho.quercus.lib.date.DateModule > > > > com.caucho.quercus.lib.file.FileModule > > > > com.caucho.quercus.lib.gettext.GettextModule > > > > com.caucho.quercus.lib.json.JsonModule > > > > com.caucho.quercus.lib.i18n.MbstringModule > > > > com.caucho.quercus.lib.mcrypt.McryptModule > > > > com.caucho.quercus.lib.reflection.ReflectionModule > > > > com.caucho.quercus.lib.string.StringModule > > > > com.caucho.quercus.lib.i18n.UnicodeModule > > > > com.caucho.quercus.lib.xml.DomModule > > > > com.caucho.quercus.lib.xml.XmlModule > > > > com.caucho.quercus.lib.xml.XMLWriterModule > > > > com.caucho.quercus.lib.zip.ZipModule > > > > com.caucho.quercus.lib.zlib.ZlibModule > > > > com.caucho.quercus.lib.jms.JMSModule > > > > com.caucho.quercus.lib.pdf.PDFModule > > > > com.caucho.quercus.lib.bam.BamModule > > > > > Most of them are essential. Some don't apply in the GAE environment. > > > > Also, I think you should include the > > > > com.caucho.quercus.QuercusClass file. That file lists Java classes > > > > that back the equivalent PHP classes. > > > > > On Apr 10, 10:28 am, Moriyoshi Koizumi wrote: > > > >> Hi, > > > > >> Finally I pushed my local work to GitHub. See HOWTO to reproduce the > > > >> attempt. > > > > >>http://github.com/moriyoshi/quercus-gae/ > > > > >> Enjoy! > > > >> Moriyoshi > > > > >> On Fri, Apr 10, 2009 at 2:44 AM, moriyoshi wrote: > > > >> > Hi, > > > > >> > Probably this is not a news, but I couldn't find a similar attempt so > > > >> > here goes... I managed to get (patched) Quercus [1] to work on GAE. > > > >> > This means now you can run considerable number of PHP application. > > > > >> > I'm going to post further details to my blog (http://d.hatena.ne.jp/ > > > >> > moriyoshi/ - mostly in Japanese). > > > > >> > Hope you are interested. > > > >> > Moriyoshi > > > > >> > [1]http://quercus.caucho.com/-ZitiertenText ausblenden - > > > > - Zitierten Text anzeigen -- Zitierten Text ausblenden - > > - Zitierten Text anzeigen - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---