Re: Can't get GTK working
| From: | LaserJetter | Date: | Tue, 12 Feb 2002 10:41:41 +0000 |
| Subject: | Re: Can't get GTK working | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1239@lists.php.net to get a copy of this message | ||
I had an email from Steph saying that I wasnt reading the download
instructions properly but as far as I know I was.
I tried replacing my original php4ts.dll and php.exe with the ones in the
downloaded zip file and I still had problems.
Interestingly though, when I was drag and dropping hello.php onto php.exe I
got a different error message after replacing these files.
I've also tried adding the lines at the bottom of the php.ini file included
in the zip file to the bottom of my php.ini but didnt make any difference.
Here's the contents of the php.error.log:
[12-Feb-2002 10:32:45] PHP Fatal error: php-gtk: argc/argv are corrupted in
C:\Program Files\php\gtk\hello.php on line 5
[12-Feb-2002 10:36:49] PHP Warning: Unable to load dynamic library
'c:\program files\php\extensions/php_gtk.dll' - A device attached to the
system is not functioning.
in c:\program files\php\gtk\hello.php on line 5
[12-Feb-2002 10:36:49] PHP Fatal error: Cannot instantiate non-existent
class: gtkwindow in c:\program files\php\gtk\hello.php on line 42
The first error was caused by drag and drop, the second and third were both
due to typing php "c:\program files\php\gtk\hello.php"
I know the path to php_gtk.dll looks a bit wierd with that forward slash but
the gd extension loads fine with this path and changing the back slashes to
forward slashes doesnt make any difference.
The dl() function is enabled in the php.ini file by the way as well ;o)
"Frank M. Kromann" <frank@frontbase.com> wrote in message
news:101346422001@kromann.info...
>
> As long as you are using compatible versions of php.exe, php4ts.dll,
php_gtk.dll and phpapache.dll there should be no problem in having both
versions running on the same system.
>
> Could you provide me with the error text so I can get an idea of what is
going wrong ?
>
> - Frank
>
> > Hi. I can't get PHP-GTK working on my machine.
> >
> > I'm running Win98 and I already have a PHP4.1.0/Apache install and have
kept
> > my original php.ini and php4ts.dll files.
> > The readme file said that I should copy some files to my system32 folder
> > which I did but I thought it might have meant system folder so I copied
them
> > there too.
> > Whenever I try to run one of the sample files with php.exe I get an
error
> > saying that there's something wrong with the php_gtk.dll file. Usually a
> > dialog box will come up and say its missing or in php.error.log it says
a
> > device attached to the system is not functioning.
> > My extensions directory is c:\program files\php\extensions and I have
copied
> > the php_gtk.dll etc files to the extensions dir and the php dir.
> >
> > Does anyone know what's causing this? PHP runs fine as a module on the
> > computer.
> >
> >
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>