Re: Glade @ phpGTK - WIN32

From: Date: Thu, 21 Feb 2002 10:56:49 +0000
Subject: Re: Glade @ phpGTK - WIN32
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1293@lists.php.net to get a copy of this message
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


« previous php.gtk.general (#1293) next »