DB.php failed to load

Problems with the Windows version of XAMPP, questions, comments, and anything related.

DB.php failed to load

Postby Scjohnson » 26. October 2010 22:00

Hi all - I'm very new at this so please forgive the incoming! :)

I'm trying to use XAMPP to be able to connect to my local oracle DB - I have not even gotten to the point of getting my Require_once('DB.php') working, it tells me its invalid.

I read in the docs this little section:

Depending on your operating system, add a : (Unix/Linux/FreeBSD/Mac OS X) or a ; (Windows) after the dot. Add PEAR's php_dir after it. (The directory System.php is located in!)

The result should look like that:

; Unix
include_path=".:/usr/local/php/pear/"or

; Windows
include_path=".;C:\php\pear\"


I'm using windows, and into my PHP.ini file where it said:

;Windows
;include_path = '.;c:\php\includes"

to
;windows
include_path = '.;c:\XAMPP\xampp\php\PEAR"

(this happens to be the same entry for the include just below it which is php default setting for include_path it says

my installation directory is C:\XAMPP and my system.php file is located in C:\XAMPP\xampp\php\PEAR

if I create another file and do:
<?php
require_once 'System.php';
var_dump(class_exists('System'));
?>

I get back bool(true) So I'm not sure exactly WHERE my problem is - any help would be appreciated.
Last edited by Scjohnson on 26. October 2010 22:09, edited 1 time in total.
Scjohnson
 
Posts: 2
Joined: 26. October 2010 21:00

Re: DB.php failed to load

Postby Scjohnson » 26. October 2010 22:09

I found a copy of DB.php over in \php\Pear\Zend and tried to use that - after trying that it did not have a problem until I did my connection string and then it tells me, "Class "DB" not found'

my file was
<?php
require_once ('C:\XAMPP\xampp\php\PEAR\Zend\DB.php');

$dsn = "oci8://user:pass@host";
$myConn = DB::connect($dsn, true);
?>
Scjohnson
 
Posts: 2
Joined: 26. October 2010 21:00


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 120 guests