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
2
votes
2 answers

PHP Call from Java Using Quercus

I have a sample PHP class which I would like to Utilize in my Java Application. We have decided to use Quercus as a Libary for doing the Integration. Can some one let me know How can I call a PHP class from Java Code using Quercus. For Example. PHP…
Niraj Salot
  • 145
  • 1
  • 12
2
votes
1 answer

Delete and Update from google app engine datastore

I use Quercus to run php on google app engine and use GAE LowLevel Api to connect datastore. I need sample php code to CRUD ( Create, Read, Update, Delete ) in datastore. I have Create and Read sample php code. Create entry to datastore
Questioner
  • 225
  • 4
  • 10
2
votes
1 answer

Grails 3 with Quercus PHP

I'm trying to integrate WordPress with grails 3. I used Quercus 4.0.39. I'm new to grails and I don't know how to configure and how to run PHP file within grails app. Need detailed setup information. I tried grails PHP plugin, but the plugin is not…
2
votes
1 answer

Saving big string in php using quercus

I'm using quercus for appengine. I tried saving a long php string (> 1000 characters) but appengine won't allow me as String can only hold 500 characters. So I tried using appengine's Text datatype. It lets me save, however, when I retrieve the data…
Andreas Wong
  • 59,630
  • 19
  • 106
  • 123
2
votes
1 answer

Rewrite URL on Glassfish with Quercus' PHP

I have Glassfish 3 server and have added Quercus 4.0.7 to to be able to run PHP applications on it. Everything works perfectly with it. Now I'm trying to run Question2Answer application on my server. I was able to open application but it's not…
Maksim
  • 16,635
  • 27
  • 94
  • 135
2
votes
0 answers

Using php code with Spring with Quercus

I am working on a Spring-MVC application where I would like to integrate some Legacy PHP code. In the PHP files, I have mostly static content, and I would like to import and use the PHP tags of include and include once inside a JSP file. After…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
2
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…
2
votes
2 answers

Running Quercus PHP inside Java

I am trying to run some PHP snippets from my Java application. I have seen this question: PHP Call from Java Using Quercus which suggests simply: import com.caucho.quercus.QuercusEngine; QuercusEngine engine = new…
woddle
  • 1,582
  • 1
  • 18
  • 34
2
votes
1 answer

How do you install Mantis (php) into Quercus (java based php engine) running on Tomcat

This question explains that Quercus can be used to install Mantis Bug Tracker ( a php based application) within a tomcat installation. Free Wiki and Bug Tracker for JBoss/Tomcat I've now deployed Quercus successfully on Tomcat7, but I do not…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
1
vote
3 answers

Is it possible to deploy cakephp applications on google app engine?

I recently read that php applications can be deployed on Google App Engine using Quercus. Is it possible to deploy cakephp applications too? Also, from the developers point of view, is there any difference between developing applications for cloud…
Lavanya Mohan
  • 1,496
  • 7
  • 28
  • 39
1
vote
1 answer

Google App Engine Quercus Error

I have followed tutorial on http://www.php-tutorials.info/phpOnAppEngine.php and created an app engine project and include php file with following code. when i'm trying to run that php file i got below…
Bishan
  • 15,211
  • 52
  • 164
  • 258
1
vote
1 answer

App Engine / Quercus datastore prepare query error

I'm trying to replicate the java guestbook example on Quercus on AppEngine and I'm getting an error having to do with preparing the query: $greetings = $datastore->prepare($query)->asIterable(); I'm not a java developer so I can't make sense of the…
userBG
  • 6,860
  • 10
  • 31
  • 39
1
vote
2 answers

Fetching a file from a PHP file in Google App Engine

I need to know if there is anyway that I can use file_get_html or any equivalent function in php on GAE? I know it has something called URLFetch() but I am not able to understand how I will call that from a php file. Any help?
Anand Sainath
  • 1,807
  • 3
  • 22
  • 48
1
vote
1 answer

Importing the Resin source into Eclipse

How can I import the Resin source code into Eclipse (3.6)? I'm looking to edit some main functions of Quercus.
Bogdacutu
  • 763
  • 7
  • 24
1
vote
2 answers

How do I register a Quercus custom function when using Quercus in Java ScriptEngine?

I am using Quercus in Apache JMeter for simple scripting of tests. I have a requirement to log from PHP using log4j, and on the whole this works well. So I wrote a Quercus module like this: public class LogFunction extends AbstractQuercusModule { …
Mick Sear
  • 1,549
  • 15
  • 25