Re: Glade @ phpGTK - WIN32
| From: | Sebastian G. | Date: | Thu, 21 Feb 2002 12:06:43 +0000 |
| Subject: | Re: Glade @ phpGTK - WIN32 | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1295@lists.php.net to get a copy of this message | ||
Hi folks,
thanks a lot. But it still fails. The script-strips by Alan Knowles say,
that the GladeXML-class does not exist. I've found these lines in
c:\windows\php.ini:
[PHP-GTK]
; For Win32 only.
php-gtk.extensions = php_gtk_libglade.dll, php_gtk_sqpane.dll
; For Unix only.
;php-gtk.extensions = php_gtk_libglade.so, php_gtk_sqpane.so
, which are the original one of the win32 binary phpGTP-package 0.5.0
The dll's have been copied to c:\php4\ (Where the binaries of php are
saved), c:\windows\ and c:\windows\system.
Status: The glade file was found, but not the gtkphp-class XML to parse
it.
Alan Knowles schrieb:
>
> if the glade file is the same directory..
>
> $filename = dirname(__FILE__) . "/mygladefile.glade";
> if (!file_exists($filename)) {
> echo "OOPS no glade file found $filename";
> exit;
> }
> if (!class_exists("GladeXML")) {
> echo "OOPS need to configure php.ini in c:/winnt/ or C:/windows/ to
> load glade.";
> exit;
> }
>
> $gx = &new GladeXML($filename);
>
> regards
> alan
>
> Sebastian G. wrote:
>
> >Hi,
> >
> >sorry, I've been doing some mistakes in order to send my messages to the
> >right adress (Has been a long time since last MS-session...).
> >
> >The following: It does not seam to work for me. I've first been
> >replacing doublequoted Parameters, so now it looks like this:
> >
> >$gx = &new GladeXML('gladefile.glade');
> >
> >Since this produced the same errormessage, I replaced _all_ doublequoted
> >entries in the hole file. Well, this does not change anything in a
> >positive way. If I've not understood this, please try explainging it
> >again.
> >
> >PQ Administrator schrieb:
> >
> >>LOL... I should have replied a lot sooner. It will screw up your includes as well if
> >>your developing on win32. So *ALWAYS* use single qoutes for includes/glade/whatever...
> >>
> >>"Steph" <Steph.Fox@btinternet.com> wrote ..
> >>
> >>>Got it. It's caused by using "double quotes" where there is a
> >>>backslash
> >>>in the filepath. The backslash isn't escaped, so the file is not found
> >>>and the object not created.
> >>>
> >>>Use single quotes, and all should be well.
> >>>
> >>>----- Original Message -----
> >>>From: "Steph" <Steph.Fox@btinternet.com>
> >>>To: "Henning Sprang" <henning@sprang.de>
> >>>Cc: "Sebastian G." <mailseppel@gmx.de>;
> >>><php-gtk-general@lists.php.net>
> >>>Sent: Wednesday, February 20, 2002 6:18 PM
> >>>Subject: Re: [PHP-GTK] Glade @ phpGTK - WIN32
> >>>
> >>>
> >>>Sorry, I've tidied that corner since then, I just ran through and the only
> >>>ones not working now are ones I've experimented with the glade source in.
> >>>Nothing here gives that error any more. I'll see if I can reproduce it.
> >>>
> >>>----- Original Message -----
> >>>From: "Henning Sprang" <henning@sprang.de>
> >>>To: "Steph" <steph.fox@btinternet.com>
> >>>Cc: "Sebastian G." <mailseppel@gmx.de>;
> >>><php-gtk-general@lists.php.net>
> >>>Sent: Wednesday, February 20, 2002 6:10 PM
> >>>Subject: Re: [PHP-GTK] Glade @ phpGTK - WIN32
> >>>
> >>>
> >>>>On Wed, Feb 20, 2002 at 06:01:34PM -0000, Steph wrote:
> >>>>
> >>>>>Sorry, but my knowledge of Glade would fit onto a postage stamp. I
> >>>>>
> >>>have some files that do this too, and never figured why.
> >>>
> >>>>hmm, only some files that do this?
> >>>>so it's not a completely general problem, but special to some files?
> >>>>
> >>>>interesting.
> >>>>
> >>>>do you have some examples that work under win and some more that don't?
> >>>>can you send them to me, and to seppel, too, please?
> >>>>
> >>>>we really need to get that going here, so i would take the task to
> >>>>see what the failing ones have in common.
> >>>>
> >>>>maybe one can handedit the problematic peaces away and there it goes...
> >>>>
> >>>>henning
> >>>>
> >>>>
> >>>>
> >>>>--
> >>>>Henning Sprang, henning@sprang.de,
> >>>>http://www.sprang.de/
> >>>>
> >>>
> >>>--
> >>>PHP-GTK General Mailing List (http://gtk.php.net/)
> >>>To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>>
> >>>
> >>>--
> >>>PHP-GTK General Mailing List (http://gtk.php.net/)
> >>>To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
MfG,
Sebastian G.