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

HSQLDB / PHP / Tomcat 8 / Quercus - Insert non-English chars

INSERT INTO words (word, meaning) VALUES ('Цветок', 'Flower') When I execute this SQL statement from an SQL client (DbVisualizer), the values in the table look exactly like you see them here in the statement, i.e. Цветок is not encoded. When I…
rapt
  • 11,810
  • 35
  • 103
  • 145
0
votes
1 answer

Tomcat Quercus Php doesn't work properly

I'm trying to run a little piece of Php code in my Tomcat 8.0.36. I have seen I need Quercus in order to do that. I have uncompressed the Quercus.war in my tomcat/webapps and renamed it to php (tomcat/webapps/php) and I have created a file (called…
DMC19
  • 825
  • 2
  • 14
  • 33
0
votes
2 answers

How to run Php Pages in Netbeans

I have just successfully deployed Quercus on Glassfish 4.1. I tested in the browser http://localhost:8080/quercus-4.0.39/ and saw this: Congratulations! Quercus™ Open Source 4.0.39 is interpreting PHP pages. Have fun! Then ran Netbeans Tools >…
Bic Mitchun
  • 478
  • 2
  • 9
  • 21
0
votes
1 answer

codeigniter with quercus shows 404 error

I'm trying to use quercus to run codeigniter on tomcat. I installed quercus in webapps/ROOT, then codeigniter in webapps/ROOT/appname. I can access index.php in webapps/ROOT/appname, but if I try to access ROOT/appname/index.php/login/login, 404…
user5776577
0
votes
0 answers

Fatal Error: 'SQLite3' is an unknown class name - PHP - SQLite

I have installed sqlite db on my server and can access the tables and data without any issues. But when i try to access it through a PHP script, I get an error - Fatal Error: 'SQLite3' is an unknown class name. Is anyone aware of this error and…
Goutam
  • 1,337
  • 8
  • 22
  • 41
0
votes
1 answer

QuercusCompiledScript.eval output not working

I cannot figure out what the problem is with the QuercusCompiledScript.eval. Running code: QuercusScriptEngine quercusScriptEngine = new QuercusScriptEngine(); quercusScriptEngine.eval(""); CompiledScript script =…
0
votes
1 answer

Quercus + WordPress email configuration

I am working with jWordPress that combines Quercus and JavaMail 1.4.1 with WordPress 4.2.2 in a WAR file executed under Tomcat on Windows. I am having trouble configuring outgoing email service: By default, Quercus attempts to contact an SMTP server…
user1408140
  • 639
  • 3
  • 9
  • 20
0
votes
1 answer

Quercus:php on glassfish server

I am trying to run php on glassfish server using Quercus and i get the following error on top of my page NetBeansProjects/WebApplication1/build/web/q2a/qa-include/qa-index.php:512: Notice: $count is an undefined variable…
Barry
  • 1,585
  • 3
  • 22
  • 35
0
votes
1 answer

Install quercus on ubuntu using tomcat

I have been trying to install quercus on ubuntu for quite a while now however i have to start again, can anyone advise on the best way of successfully installing quercus on ubuntu please? Thanks
Moshi
  • 77
  • 1
  • 10
0
votes
1 answer

wordpress servlet mapping not working

I have the latest Wordpress running on Tomcat 6.0.26 virtual host with Quercus PHP servlet. It works, except when I try to use perm links. A url such as /index.php/my-page-name doesn't seem to ever hit the PHP servlet . It gets a browser error that…
Andrew
  • 2,355
  • 4
  • 29
  • 42
0
votes
1 answer

How to install Quercus on Linux with Tomcat 8

I have a running Tomcat server and recently wanted to get phpmyadmin used with MySQL on Linux. I have researched a bit and found that Quercus can be used for PHP on Tomcat. I then started my installation. I have downloaded the quercus.war, put it…
CLs
  • 3
  • 3
0
votes
1 answer

Configuring Quercus to talk to JavaDB

I am trying to get the Quercus PHP engine to connect with the JavaDB. I have successfully deployed Quercus in Glassfish, but I can't get Quercus to successfully connect with my database in JavaDB. Can anyone point me to an article or tutorial that…
0
votes
1 answer

LDAP Update with JAVA via Quercus

I'm attempting to update a password via a portlet in Quercus using java libraries. Here is some of the code that I'm using: import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.directory.DirContext; import…
Mike
  • 85
  • 3
  • 9
0
votes
1 answer

Resin: when enabling unicode.semantics

I'm having a problem migrating an application from Resin 4.0.6 to 4.0.38 The error I get is /Users/.../general_urls.php:9: Fatal Error: 'get_servlet_context_path' is an unknown function. Where get_servlet_context_path is a function in a servlet…
Federico
  • 1,636
  • 2
  • 22
  • 24
0
votes
2 answers

php comet with quercus

if i write the comet push with php but use this code on a java server via quercus, will that solve the one process per request problem that apache had and scale well with lot of users using my chat?
ajsie
  • 77,632
  • 106
  • 276
  • 381