Re: [PHP-GTK-DEV] How to have php cli and php-gtk installed without problems
[email protected] ("Joop Boonen") Tue, 7 Sep 2010 10:24:40 +0200
| Newsgroups | php.gtk.dev |
|---|---|
| Message-ID | <[email protected]> |
On Mon, September 6, 2010 6:39 pm, Elizabeth M Smith wrote: > On 9/6/2010 9:30 AM, Joop Boonen wrote: >> All, >> >> I have a problem. >> >> I've added these lines to the /etc/php5/cli/php.ini file >> >> ; added for and by php5-gtk rpm package >> ; add more extension lines after this one if you have more .so files >> that >> should >> ; be loaded. >> extension=php_gtk2.so >> >> But this has as side effect that php scripts that are run from the cron >> like the cacti poller.php don't work. As they cant open the display. >> >> Now i wonder how I can solve this issue. >> That for example Phoronix Test Suite use the php-gtk extension. >> But poller.php don't use the php-gtk extension. >> >> Regards, >> >> Joop. > > As mentioned in this excellent article > > http://oops.opsat.net/doc/gtk/configure-php.html > > You need to have a separate php.ini file just for php-gtk Thank you. This works perfectly. The disadvantage is that php (gtk) files need to be patched to make it work. But i would prefer that the would be a mechanism that world resolve this automatically. That no display is opened when gtk isn't called. Can be checked if this can be solved in the php-gtk library? That the display will only be opened after the first php-gtk call in php? Regards, Joop. > > Thanks, > Elizabeth M Smith > > -- > PHP-GTK Development Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >