On Thu, 10 Aug 2006 16:41:38 -0500, Richard Lynch wrote:

> On Wed, August 9, 2006 3:14 am, Ivo F.A.C. Fokkema wrote:
>> SO: Loading the GTK library in your /etc/php4/cli/php.ini, KILLS the
>> PHP-cli functionality from cron. On Ubuntu Dapper, that is. Not sure
>> about
>> other distros.
> 
> Probably because the PATH to the GTK.so file is not absolute in your
> php.ini, so your can find it from your shell environment, but the cron
> shell environment cannot find it.
> 
> If you dink around with the paths in php.ini for extension_dir and the
> GTK.so, and if you set permissions up, you should be able to make it
> work, if you want it to.

The GTK.so is in the same path all the other extensions are... Also, when
logged in through X it works, when using SSH to my machine, it doesn't.

I asked on the php.gtk.general list, and I was told this behaviour is
expected; the module needs a X environment. It's not going to be fixed in
GTK2 either. For now, I've got two php.ini files. One with the extension
loaded, one without. I will just have to use the PHP-cli -c flag (specify
.ini file)...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to