TOgakangaroo Posted March 9, 2008 Share Posted March 9, 2008 PHP 5.2.5 IIS 5.1 (Although on the production machine it will be IIS 6.0) Oracle 10.2.0.1 Express Edition (On the production machine: Oracle 10g) Hello, Ok, first my final goal - I'm trying to get phpBugTracker running using the Oracle Database that we already have as a back-end. What I've down so far: Downloaded and ran the PHP installer from http://www.php.net/downloads.php Installed the DB and OLE package for pear, hear is pear list: PACKAGE VERSION STATE Archive_Tar 1.3.2 stable Console_Getopt 1.2.3 stable DB 1.7.13 stable OLE 0.6.1 beta PEAR 1.6.1 stable Structures_Graph 1.0.2 stable I can get php scripts that do not reference the database to run both through the web server and through php.exe on the command line. However, I cannot for the life of me get pear.db working. And I get different errors depending on whether I run it by accessing the server or from the command line Here is my test program: <?php if(!include_once('DB.php')) println('Include Failed'); else println('Include Suceeded!'); $db = DB::Connect('oci8:scott:tiger@XE'); if(DB::isError($db)) println('Msg: '.$db->message); else println('Connection Succeeded!'); function println($str) {echo($str.'<br />\n');} ?> Command Line Output: > php test.php Include Suceeded! Msg: DB Error: not found Output when accessed through a browser: Warning: include_once(DB.php) [function.include-once]: failed to open stream: No such file or directory in C:\Documents and Settings\georgem\My Documents\projects\test\test.php on line 2 Warning: include_once() [function.include]: Failed opening 'DB.php' for inclusion (include_path='.;C:\php5\pear') in C:\Documents and Settings\georgem\My Documents\projects\test\test.php on line 2 Include Failed Fatal error: Class 'DB' not found in C:\Documents and Settings\georgem\My Documents\projects\test\test.php on line 8 I should mention that I ran go-pear.php so my php.ini file contains the line ;***** Added by go-pear include_path=".;C:\Program Files\PHP\pear" ;***** Any ideas? Please hlep! Quote Link to comment https://forums.phpfreaks.com/topic/95256-php-iis-oracle/ Share on other sites More sharing options...
TOgakangaroo Posted March 10, 2008 Author Share Posted March 10, 2008 As an update, I checked all my permissions. The user used by IIS on this site has full permissions for all directories and sub-directories and files in c:\program files\php\ . Please Help! Quote Link to comment https://forums.phpfreaks.com/topic/95256-php-iis-oracle/#findComment-488558 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.