Re: GTK & Win/Sys32 dll's

From: Date: Sun, 01 Jun 2003 16:12:07 +0000
Subject: Re: GTK & Win/Sys32 dll's
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3507@lists.php.net to get a copy of this message
Stan Lemon wrote:
Is there an easy way to change the path which PHP-GTK looks for the c:\Windows\System32 dll's? I am looking for a way to dist. PHP-GTK with my applications without having the user copy or install anything.
This is the method I used when making UFUP (http://ufup.sourceforge.net/), another program that doesn't require the user to install PHP-GTK first: Create a "php" directory inside your program directory. Throw the necessary PHP binaries and libraries (the ones from the Windows PHP-GTK package) as well as your php.ini into the "php" directory. Change extension_dir to "./" in php.ini. Then call PHP like this: cd c:\your\program\directory php_win -c php.ini -f ..\yourprogram.php When you're making a desktop icon for your program, be sure to set the start directory of the shortcut to c:\your\program\directory.

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