Questions tagged [quercus]

Quercus is an implementation of the PHP (version 5.3) programming language in pure Java.

Quercus is an implementation of the PHP (version 5.3) programming language in pure Java and runs ontop of common java application servers such as Tomcat. It is possible to make calls to java from the php-code:

<?php
  import java.util.Date;
  $a = new Date(123);
  echo $a->time;
?>

Example from the quercus website.

80 questions
14
votes
5 answers

Is Quercus a viable replacement for PHP in Java environments?

For anyone stumbling upon this question who doesn't know what Quercus is - it is an implementation of PHP done in Java. For a project that I am currently working on we serve php pages via cgi over servlets (I know it is clunky, but it is a…
Elijah
  • 12,636
  • 9
  • 54
  • 88
9
votes
5 answers

I have PHP running on Google App Engine - How do I use a DB?

I followed PHP on the Google appengine to setup and it works great. Any suggestions on how to use a database / datastore with PHP on GAE?
user68417
7
votes
5 answers

parse remote csv-file with PHP on GAE

I seem to be in a catch-22 with a small app I'm developing in PHP on Google App Engine using Quercus; I have a remote csv-file which I can download & store in a string To parse that string I'd ideally use str_getcsv, but Quercus doesn't have that…
futtta
  • 5,577
  • 2
  • 19
  • 32
7
votes
2 answers

quality of quercus translation?

have someone used quercus to translate php into bytecode? if you got a big php application, will the translation be flawless? it sounds to me very impossible to just translate everything without error in code like that. but they claim on their web…
ajsie
  • 70,516
  • 97
  • 259
  • 375
5
votes
1 answer

Is Quercus (Java) faster than native PHP?

If so, why? (Or maybe the better question is 'when'?) I've found some scattered comments, such as in this post, which seem to indicate that Quercus may actually offer some performance advantages over native PHP. I am looking to use a Tomcat/Quercus…
njt
  • 267
  • 5
  • 12
5
votes
1 answer

How fast (slow) is Quercus PHP on Resin Open Source as opposed to Resin Professional?

The clever folks at Caucho are quick to point out that Quercus is 3x-5x faster than straight mod_php (without APC). But digging deeper in the documentation, you'll see that the PHP-to-bytecode compilation is only available in Resin Pro ($699). What…
Alex R
  • 10,320
  • 12
  • 76
  • 145
4
votes
2 answers

how to use com.google.appengine.api.datastore.Text

i use Quercus to run php on google app engine and and i use below code to insert value to the GAE datastore (BigTable).
Questioner
  • 225
  • 4
  • 10
4
votes
3 answers

How can JVM implementations like Jython and JRuby beat their native counterparts?

I was watching this video here, where Robert Nicholson discusses P8, an implementation of PHP on the JVM. At some point he mentions that they aim to surpass native PHP in performance some time in the future. He mentions JRuby and Jython, which…
Aillyn
  • 21,054
  • 22
  • 55
  • 82
3
votes
4 answers

Google AppEngine java.net.Socket is restricted error

I'm using Quercus/PHP on AppEngine. When I run a simple script with file_get_contents($url); I get an error: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more…
userBG
  • 5,610
  • 8
  • 28
  • 36
3
votes
1 answer

Configuring Quercus on Google App Engine

I am currently working with GAE and was trying to figure out if there was some way that I can run php on GAE. Fortunately, I came across Quercus and was very happy to find that it had all that i needed. But the problem now is that once I include…
Anand Sainath
  • 1,757
  • 3
  • 20
  • 44
3
votes
1 answer

Apache Commons VFS with Quercus

On an unmodified install, how can I configure Quercus so that PHP file functions use Apache Commons VFS to access files?
Bogdacutu
  • 755
  • 7
  • 23
3
votes
1 answer

How can I use Google App Engine's memcache with Quercus?

On http://blog.caucho.com/?p=196, they have made Quercus run App Engine's datastore with PHP. Their source is at http://wordpress-on-quercus.appspot.com/wordpress-on-gae-quercus.zip I would like to do something similar with their Google App Engine's…
Victor
  • 680
  • 1
  • 5
  • 16
3
votes
0 answers

Resin (Quercus) PHP functions do not work when app is compiled

Forgive me if I make any mistakes as this is my first time posting a question. I'm working on a web app that uses the Resin Embedded Libraries -- It depends heavily on the PHP Engine (Quercus) that is included with Resin. After 3 days of coding I…
Miss Amelia Sara
  • 406
  • 3
  • 15
3
votes
1 answer

Setting Quercus database connection encoding to UTF-8

Now we are going to use Java class in my website developed with PHP and MySQL. I came to know Quercus and it worked well. But only problem is encoding. Quercus is providing ISO8859 encoding in default and all database in UTF-8 is not shown properly…
sokcmss
  • 31
  • 2
3
votes
1 answer

PhP with GAE and Google Cloud SQL

I'm creating a web app using php to run on google app engine. i wish to use google cloud sql to store data. i used a Local MySQL Instance During Development. i have added quercus to my project and wrote simple php code to retrieve data from existing…
Bishan
  • 14,035
  • 48
  • 151
  • 235
1
2 3 4 5 6