Hi,

I'm trying to install the php/java bridge on ubuntu hardy heron.

I've installed it from the source downloaded from sourceForge. I've managed to get it run from the php command line as

php test.php

but when i run it from apache i get an error from the code below

require_once("...java/Java.inc");

error mention that it could not find the file

Hi.

Are you sure that the path is correct?

Personally, I would add files like that in the include path so I wouldn't have to worry about stuff like this.

To find the include path, create a new PHP file with this code:

echo ini_get("include_path");

That should show you the path to a directory. Copy your include file into that directory and you should be able to include it in any script by the file name alone.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.