Komodo/PHP/MySQL Problem under Windows XP
Hi all,
I have setup PHP5/MySQL5 (using mysqli) and works properly from the
command line. Here is the code that works when run from the command
line: (c:\php5apps\phptest> php-win php-1.php)
<?php
$conn = new mysqli('localhost','root','xyz','testdb');
if (mysqli_connect_errno() != 0)
{
$message=mysqli_connect_error();
}
?>
Now I want to use Komodo for the IDE/Debugger. When I set the Komodo
debugger to use PHP-WIN.EXE I get "CLI has encountered a problem and needs to close. We are sorry for the inconvenience."
Someone said there is a problem with Komodo and CLI (I assume this means the .NET stuff)
I then switch the Komodo debugger to use PHP-CGI.EXE and I get the
message below when it executes the "new mysqli()" line:
PHP Fatal error: Class 'mysqli' not found in C:\PHP5Apps\Astir\PHP-1.php on line 5 .
Same error if I use the CGI command line of PHP: c:\php5apps\phptest> php-cgi php-1.php
I think I have my paths correctly:
C:\Program Files\MySQL\MySQL Server 5.0\bin;c:\PHP5;c:\Apache2
and PHP.INI has this line:
extension=php_mysqli.dll
I am at a loss, as I cant seem to be able to to debug either way with
Komodo. (I could switch to another editor but I already paid for it and runs on both Linux and Windows and seems easy to use.).
Last edited by imok; 2006-04-17 at 10:56 AM.
|