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

Erorr Connecting database in Quercus on tomcat

I am using Quercus for my blog combined with another Spring+MySQL+tomcat main app(2 war in 1 server). On my localhost i am able to compile WordPress PHP files compiled and everything seems great. But when i put same configuration on my hosting…
Sachin
  • 119
  • 2
  • 19
1
vote
1 answer

How to write to logfile with quercus

I'm running quercus 4.0.25 on apache tomcat 1.7 and I've finally managed to get php running. However I cannot seem to get my php settings regarding writing to logfiles running. I've tried these following settings in my web.xml…
Daniel Figueroa
  • 10,348
  • 5
  • 44
  • 66
1
vote
1 answer

Getting QuercusView to work with SpringMVC

I'm trying to implement SpringMVC + Quercus as described at http://blog.caucho.com/2009/04/14/using-php-as-a-spring-mvc-view-via-quercus/ . So I setup Spring like this: web.xml Quercus Servlet
drecute
  • 748
  • 4
  • 11
  • 29
1
vote
0 answers

Error encountered while trying to upload Quercus to hosting server

I am new to Quercus, I am trying to run PHP on my TOMCAT HOST. Everything works fine on my local tomcat server, however, after I uploaded it to my hosting server(EATJ) I have the following Errors: java.lang.NoClassDefFoundError: Could not initialize…
1
vote
1 answer

Using Zend on Quercus/Tomcat and connect to Oracle

I am using Zend on Quercus/Tomcat and I want to connect to Oracle using Zend_db. (a) How to make Quercus connect to Tomcat JNDI data source to a Oracle database (b) How to make Zend_db to connect to that data source The PDO::getAvailableDrivers()…
virimchi
  • 11
  • 2
1
vote
1 answer

Quercus on Google App Engine

I have added Quercus wrongly on google app engine and it is giving me errors. This is my web.xml:
jon_teojic
  • 21
  • 1
  • 3
0
votes
1 answer

How to inject java instances into PHP scripts programmatically executed using Quercus

I have some code similar to this: QuercusEngine engine = new QuercusEngine(); Value value = engine.execute("getName(); ?>"); System.out.println(value); (See http://wiki.caucho.com/Quercus:_Command_Line_Interface_(CLI) for more…
Jason Wheeler
  • 872
  • 1
  • 9
  • 23
0
votes
2 answers

PHP enabling glassfish with Quercus - maven dependency?

It turns out to be pretty easy to get php running in my glassfish application. I've downloaded Quercus 4.0.18 from here: http://caucho.com/download/quercus-4.0.18.war, unpacked the war file and copied the 4 jar files from the WEB-INF/lib to…
Oversteer
  • 1,778
  • 1
  • 22
  • 38
0
votes
1 answer

How to access google spreadsheets with php in google app engine?

I have already PHP in GAE with Quercus, but I'm trying to access my google spreadsheets and I want to SELECT, INSERT INTO, UPDATE and also DELETE(or DROP, forgot the function) just like in mysql. How to do it??
0
votes
1 answer

Jetty 7.4.2 + Quercus 4.0.18: How can I read PHP files from outside the webapp directory

Using this code... import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.WebAppContext; public class OneWebApp { public static void main(String[] args) throws Exception { String jetty_home = "C:/Software/jetty"; …
braveterry
  • 3,724
  • 8
  • 47
  • 59
0
votes
0 answers

Deploying JavaBridge on Glassfish server

I'm trying to install JavaBridge on Glassfish server. It is installed as I can see its start page on http://localhost/JavaBridge/. enter image description here However, when I'm trying to access it from php code (using quercus-4.0.39 that it also…
Uzea
  • 1
0
votes
1 answer

PHPBB3 in GlassFish4

I'm trying to run PHPBB3 forums in Glassfish 4 using quercus 4.0.39 but I'm getting the error below error, i made test page contains and worked fine ,I don't know anything about PHP com.caucho.quercus.UnimplementedException:…
SShehab
  • 1,039
  • 3
  • 17
  • 31
0
votes
0 answers

Connecting to mysql within Glassfish

My goal is to run php on glassfish server. I installed Quercus and deployed it as an application within glassfish under (C:\glassfish4\glassfish\domains\domain1\applications\Quercus). Now I try to connect to mysql. The mysql server is running and…
mtleis
  • 712
  • 1
  • 9
  • 28
0
votes
1 answer

Quercus: Java and PHP integration

I was try Quercus these days, I want to create a java PHP integration module, after looking at the tutorials, I was stack at the part below: Step 3: Create com.caucho.quercus.QuercusModule and place it in $webApp/WEB-INF/classes/META-INF/services …
wgx731
  • 197
  • 3
  • 15
0
votes
1 answer

how to use FetchOptions in google app engine datastor

how to use FetchOptions functions in php? I want to know how to use the limit and offset functions in the below query code?
Questioner
  • 225
  • 4
  • 10