Re: Can PHP and PHP-GTK Co-Exist
| From: | dpgirago at mdanderson dot org | Date: | Thu, 20 May 2004 17:08:36 +0000 |
| Subject: | Re: Can PHP and PHP-GTK Co-Exist | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-4526@lists.php.net to get a copy of this message | ||
The only way I could get everything to work properly was to put all the
GTK dll's and php_win.exe in the main PHP4 directory with php.exe. I kept
the original php.ini file in the directory with apache.exe, then created a
second, truncated php.ini file for PHP-GTK in the PHP4 directory. I'm
running PHP.exe as an apache module. Could you (or someone) explain how
you were able to use just one php.ini file?
Thanks for your help,
David
> I have one PHP4 and one PHP5 directory on my system. I can use the exact
> same version of php for IIS, Apache and PHP-GTK applications.
> The only thing you need to do is to use the dl() command to load the gtk
> extension, as this extension can only be loaded by CGI or CLI versions
of
> PHP. You can share the same php.ini file and have it it the same
directory
> as the rest of the PHP binaries.
> - Frank
>> Newbie question here...
>>
>> On Win2K, Apache 1.3.27, (trying to install) PHP 4.3.6, MySQL 4.0.16...
>>
>> Can I have PHP web-based apps and PHP-GTK executables working on the
same
>> machine, (and off of the same php.ini, dll, and lib files)? I'm asking
>> because I'm running into problems with the configuration for this type
of
>> set-up. Where do I put php.ini, php4ts.dll, and php4ts.lib, for
example?
>> For web apps, I've kept the php.ini file in the directory with the
>> Apache.exe file, but I'm not sure this is working with PHP-GTK.