Re: GladeXML and relative path

From: Date: Sat, 17 Nov 2001 22:30:59 +0000
Subject: Re: GladeXML and relative path
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-611@lists.php.net to get a copy of this message
At 11:50 AM 11/17/01 -0800, Frank M. Kromann wrote:
Current working directory is always the active directory when php.exe (or php_win.exe) is loaded. There is two ways to "fix" this problem. 1) add c:\php-gtk to your system path and execute the script from the directory where it is located. 2) execute the script from the location with c:\php-gtk\php -q <script name> I like option 2 the most. That way I can have more than one php installation on my system. Remember if you create shortcuts to php/php-gtk applications you should alwasy specify the full path to php.exe and set the working directory to the location of the script.
PHP has option -C which makes it not switch to script's directory as the current one. -Andrei

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