Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Editors and Tools > PHP Desktop Editors

PHP Desktop Editors Talk all about PHP Editors.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-04-17, 03:48 PM
Junior Member
 
Join Date: Apr 2006
Posts: 4
imok is on a distinguished road
Default 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 03:56 PM.
Reply With Quote
  #2 (permalink)  
Old 2006-04-17, 04:32 PM
Junior Member
 
Join Date: Apr 2006
Posts: 4
imok is on a distinguished road
Default

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!
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:57 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.