Re: Problem with Glade xml file!

From: Date: Fri, 31 Dec 2004 08:26:59 +0000
Subject: Re: Problem with Glade xml file!
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5394@lists.php.net to get a copy of this message
Hi Josh,
OK, First my php_win.exe works with the gtk.php and the hello.php. But the only way I can run a script that loads a glade file is through the command prompt php.exe file. I have no idea why this is. Also tried using the blender program the resulting exe did not run either. What am I missing? I know that it's a little late, but here is the answer:
The glade file is searched in the current working directory if you specify
new gladexml('file.glade');
When you start it form command line, the cwd is probably the directory where the glade file (and the .php) resides; with php_win.exe this doesn't have to be. So you would have to use
new gladexml(dirname(__FILE__) . '/file.glade'); to load the glade indepentend of the current working directory.
Regards/MfG, Christian Weiske -- XMMS is playing now: The Cardigans - And Then You Kissed Me

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#5394) next »