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
1
vote
1 answer

GAE IN List query using quercus php - how to?

I'm trying to perform a GAE low-level API query on a list using Quercus (PHP). The java example reads: Query query = new Query("myname"); List list = Arrays.asList("test", "jack", "math"); query.addFilter("id", FilterOperator.IN,…
1
vote
0 answers

$_POST Variable Empty in Quercus Portlet on Liferay 6

My company is migrating from Luminis 5.1 to Luminis 5.3 (both built from Liferay 6), and we're running into a problem where portlets that POSTed fine in 5.1 no longer supply the Post Body in 5.3. For example, this form
Goldentoa11
  • 1,700
  • 2
  • 17
  • 29
1
vote
1 answer

GAE error uploading Quercus' resin.jar

I'm writing a test app for GAE with PHP, the docs I read online said I had to download Resin 4.0 and extract the resin.jar and put it in my lib folder(http://wiki.caucho.com/Quercus_Google_App_Engine). Well, GAE wont let me upload it to their…
NeerPatel
  • 863
  • 6
  • 19
1
vote
0 answers

Configure Quercus for MSSQL

Right now I have tomcat8 with Quercus 4.0. and running up. I'm trying to configure a MSSQL db connection to use from PHP. On doing: I got: C:\java\tomcat8\webapps\php1\info.php:2: Fatal Error:…
esis
  • 11
  • 1
1
vote
2 answers

PSpell in Quercus?

We're running Quercus on Glassfish to serve the odd PHP file. I'm wondering if its possible to get PSpell/ASpell(?) spellchecker(s) working in Quercus? It seems for normal PHP you need to compile it w/ PSpell so I'm not too sure how to go about this…
rat
  • 11
  • 1
1
vote
2 answers

Quercus on Google App Engine: Class not loading

Fatal Error: no matching class connection index.php getPersistenceManager(); // ***ERROR HERE*** ?> connection.java package database; import javax.jdo.JDOHelper; import…
HyderA
  • 20,651
  • 42
  • 112
  • 180
1
vote
0 answers

Tomcat+QuerCus+Wordpress Pretty URLS

Wordpress Permalinks on Quercus + Tomcat the solution described in the above post works, but the URL appears as http://www.mysite.co.uk/blog/sample-post/?q=sample-post How do we avoid the last bit "q=sample-post" from appearing? Removing the code…
1
vote
2 answers

Is it possible to run a ZF2 application on Resin with Quercus?

I am attempting to set up a very basic Zend Framework 2 application to run on Resin using Quercus as a proof of concept. I'm running into some issues, and I haven't been able to find any open source examples of a ZF2 application running on…
adamdunson
  • 2,635
  • 1
  • 23
  • 27
1
vote
0 answers

Getting session error when using codeigniter inside glassfish

I am using glassfish4 server and codeigniter php framework. I am new to glassfish server. I followed the oracle documentation for installing and configuring glassfish4 with quercus-4.0.1 and simple php scripts running well. But when come to…
1
vote
2 answers

Exception: WELD-000071 Managed bean class com.caucho.jms.MemoryQueue must be @Dependent while installing Quercus on Glassfish

I am trying to install Quercus 4.0.37 on Glassfish 4.0, while deploying it on glassfish from admin interface I am getting this error: Exception while loading the app : CDI definition failure:WELD-000071 Managed bean class com.caucho.jms.MemoryQueue…
Abhinav
  • 3,322
  • 9
  • 47
  • 63
1
vote
1 answer

Is it possible to embed a MySQL database server into a Java servlet?

I am in a situation where I am being asked to make a single WAR file that runs Wordpress. Using Quercus, Tomcat and httpd+mod_rewrite I was able to make a WAR file containing everything except the database, which I ran externally. However, I'm not…
jacobq
  • 11,209
  • 4
  • 40
  • 71
1
vote
2 answers

install quercus in glassfish?

i have downloaded the latest quercus 4.0.3 war-file from http://quercus.caucho.com/ how do you install quercus in glassfish? i followed this old tutorial for a old quercus version but it didnt…
ajsie
  • 77,632
  • 106
  • 276
  • 381
1
vote
1 answer

quercus php and RegexpException: Delimiter A in regexp 'Array' must not be backslash or alphanumeric

I'm new here, I know the error in title has been already discussed here but I didn't find any answer to my problem. I'm trying to make phpbb3 work on my server with tomcat6 using quercus for php. Everything is ok except bbcode.php module that give…
1
vote
1 answer

Wordpress Permalinks on Quercus + Tomcat

How do I enable wordpress permalinks such as http://www.mysite.co.uk/blog/sample-post/ I'm running Tomcat 7 with Quercus and Wordpress. At the moment I just get 404 errors.
DD.
  • 21,498
  • 52
  • 157
  • 246
1
vote
1 answer

Cannot set global `include_path` in Quercus

I am unable to set persistent php.ini-style parameters in Quercus 4.0.36. As an example, the include_path parameter can be set from code, either using ini_set or set_include_path, and the include path is updated. However, none of the documented ways…
0hex
  • 125
  • 1
  • 5