gnope php gtk gui gnope.org  

Run PHP-GTK and PHP-Apache on Win32 ?!

 
Post new topic   Reply to topic    gnope.org Forum Index -> Installation problems
View previous topic :: View next topic  
Author Message
dude_xyx



Joined: 19 Mar 2006
Posts: 1

PostPosted: Sun Mar 19, 2006 2:30 pm    Post subject: Run PHP-GTK and PHP-Apache on Win32 ?! Reply with quote

Hi guys,

I have PHP running as an Apache module on my Windows 2004 development machine. Is there a way to run PHP-GTK with it ? I d tried this years ago and ended up in a big mess.

win 2004 SP4
Apache 2.0.55
php 5.1.2 sapi litesql , mysql on

If this is possible plz explain how to do it.

BTW this article says it can be done.
http://www.sitepoint.com/print/run-php-gtk-php-apache-win32
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Sun Mar 19, 2006 9:26 pm    Post subject: Reply with quote

That was possible on php4 and php-gtk1, because the php-gtk.dll was loaded with "dl" on every script by hand.

On PHP5, the "dl" method is deprecated and the extension has to be loaded automatically in the php.ini. Using gtk with a graphic-less apache (on unix you'd say without X) isn't possible, so loading the php module will fail.

What you could do is using multiple php.ini files and try to get different versions loaded; one without php-gtk for apache, and one with php-gtk2 when using the cli version. You could achieve this by putting the php.ini (without php-gtk) in the apache dir, and the other php.ini in the windows dir. If you are lucky, it works. I never tried it an can't gurantee anything :/ But please tell us what happened.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> Installation problems All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.