View unanswered posts | View active topics It is currently Tue Dec 12, 2017 3:46 am



Reply to topic  [ 2 posts ] 
 Komodo/PHP/MySQL Problem under Windows XP 
Author Message
Junior Member

Joined: Mon Apr 17, 2006 8:37 am
Posts: 4
Post 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.).


Mon Apr 17, 2006 8:48 am
Report this post
Profile
Junior Member

Joined: Mon Apr 17, 2006 8:37 am
Posts: 4
Post 
Ok figured it out.

1) I had to set in PHP.INI this path:

; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\PHP5\ext"

2) I had to rerun the Komodo Debug Wizard which added a couple of lines at the very top of PHP.INI in a backup folder.

Also, found out that extension_dir only allows one path. You cant semicolon paths it seems.

Whew!


Mon Apr 17, 2006 9:32 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.