In Windows environment (Win2K) I installed the PHP-GTK.201 and created a new project using the php-cli.ini for Options | General Options php.ini. Menu selection Run | Run PHP-GTK did print out my Hello World in the log box but also reported an error saying it could not load php_pgsql.dll (a library for PostgresSQL database):
< PHP Warning: PHP Startup: Unable to load dynamic library './ext\php_pgsql.dll' - The specified module could not be found.
< in Unknown on line 0
Spotting the mixed types of slashes in the path, I changed the extension_dir= line in php-cli.ini so that instead of "./ext" it reads ".\ext". Still failed on loading the php_pgsql.dll, even though the file is actually included in the extension directory and the file properties look okay. So, I commented out the extension in the ini using a semicolon:
;extension=php_pgsql.dll
Now, there was no error when I ran my php script.
As a curiosity I changed ".\ext" back to "./ext" and my php script still ran.
So, apparently, it found the other extensions, like the MySQL extension, but I don't have a PostgresSQL database dynamic link library.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> I installed the PHP-GTK.201
Do you mean PiGii http://pigii.sourceforge.net/ ?
If yes, which kind of installer (lite, standard, huge)
and which version 008, 009 ?
Well - works for me. Could you please attach your php.ini to a mail to
pf18387@users.sourceforge.net ?
The file %ProgramFiles%/PHP-GTK.201/ext/php_pgsql.dll is supposed to exist
version: 5.2.9.9 and size: 98,380 B
1) I started to install a "fresh" XP3 + ie8 inside a VirtualPC2007_sp1
2) Downloaded PiGii huge 2.0.1.009 and Dev-PHP 2.4.0.329
3) With PiGii: I've selected all install options for PHP - except Oracle
4) Wrote a little script <?php echo 'Hello world!'; ?>
5) Executed this script without php.ini: no error message
6) Executed this script with the standard php.ini: no error message
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Kajei, many thanks for your report. In fact, this is a bug.
It can be easily fixed by copying the file ssleay32.dll (and libeay32.dll) to the local directory containing the php*.ini files
Could you please confirm that?
PiGii will fix it.
Once again, thank you for the accurate report.
Pierre.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I copied over the two files from my C:\Program Files\PostgreSQL\8.4\bin and I uncommented extension=php_pgsql.dll in the C:\Program Files\PHP-GTK.201\php-cli.ini. Now the script runs without an error. Thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In Windows environment (Win2K) I installed the PHP-GTK.201 and created a new project using the php-cli.ini for Options | General Options php.ini. Menu selection Run | Run PHP-GTK did print out my Hello World in the log box but also reported an error saying it could not load php_pgsql.dll (a library for PostgresSQL database):
< PHP Warning: PHP Startup: Unable to load dynamic library './ext\php_pgsql.dll' - The specified module could not be found.
< in Unknown on line 0
Spotting the mixed types of slashes in the path, I changed the extension_dir= line in php-cli.ini so that instead of "./ext" it reads ".\ext". Still failed on loading the php_pgsql.dll, even though the file is actually included in the extension directory and the file properties look okay. So, I commented out the extension in the ini using a semicolon:
;extension=php_pgsql.dll
Now, there was no error when I ran my php script.
As a curiosity I changed ".\ext" back to "./ext" and my php script still ran.
So, apparently, it found the other extensions, like the MySQL extension, but I don't have a PostgresSQL database dynamic link library.
> I installed the PHP-GTK.201
Do you mean PiGii http://pigii.sourceforge.net/ ?
If yes, which kind of installer (lite, standard, huge)
and which version 008, 009 ?
> using the php-cli.ini as Options > General Options > php.ini
Tip: this "php-cli.ini" file will be used by the php.exe engine
if that field of Dev-PHP is left blank :)
http://sourceforge.net/apps/mediawiki/devphp/index.php?title=Dev-PHP2_::_User_guide_:_Configuration
> I changed the "extension_dir=" line in php-cli.ini
> so that instead of "./ext" it reads ".\ext"
True, but actually / and \ are equivalent (here).
> So, I commented out the extension in the ini using a semicolon
You're perfectly right - and PHP won't load this driver
> So, apparently, it found the other extensions,
> like the MySQL extension.
True: the MySQL drivers are now shipped with PHP.
Thanks for eh quick reply. I installed PiGii, Huge, version 009. Here is the name of the file I downloaded: "phpgtk_2_0_1_009.huge.exe"
> I installed PiGii, Huge, version 009.
Ok, thanks. Looks like a bug.
To be continued…
Best regards,
Pierre.
Well - works for me. Could you please attach your php.ini to a mail to
pf18387@users.sourceforge.net ?
The file %ProgramFiles%/PHP-GTK.201/ext/php_pgsql.dll is supposed to exist
version: 5.2.9.9 and size: 98,380 B
1) I started to install a "fresh" XP3 + ie8 inside a VirtualPC2007_sp1
2) Downloaded PiGii huge 2.0.1.009 and Dev-PHP 2.4.0.329
3) With PiGii: I've selected all install options for PHP - except Oracle
4) Wrote a little script <?php echo 'Hello world!'; ?>
5) Executed this script without php.ini: no error message
6) Executed this script with the standard php.ini: no error message
Kajei, many thanks for your report. In fact, this is a bug.
It can be easily fixed by copying the file ssleay32.dll (and libeay32.dll) to the local directory containing the php*.ini files
Could you please confirm that?
PiGii will fix it.
Once again, thank you for the accurate report.
Pierre.
I copied over the two files from my C:\Program Files\PostgreSQL\8.4\bin and I uncommented extension=php_pgsql.dll in the C:\Program Files\PHP-GTK.201\php-cli.ini. Now the script runs without an error. Thank you!