Re: RE: [PHP-GTK] c:\php4 default dir for 0.5 confirm please
| From: | Frank M. Kromann | Date: | Sat, 02 Feb 2002 00:40:57 +0000 |
| Subject: | Re: RE: [PHP-GTK] c:\php4 default dir for 0.5 confirm please | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-1101@lists.php.net to get a copy of this message | ||
Hi All,
php.exe looks for a file called php.ini either in the same directory as your script or in the
windows directory (usaly c:\winnt or c:\windows).
In the php.ini file you must specify extension_dir. If exitension_dir = ./ php will look for
extensions in the same directory as php.exe is installed in.
In php.ini you also need to have a line like this if you use any gtk extensions
php-gtk.extensions = php_gtk_libglade.dll, php_gtk_sqpane.dll
php_win.exe is a small wrapper program that runs php.exe without showing the dos-window. This
program searches for php.exe in c:\php4d:\php4;%PATH%. So if you install php in a directory included
in your PATH or in c:\php4 or d:\php4 it will be found. If you choos to install php.exe in an other
directory you can specify the location using the environment variable PHP_BIN. You can crewate a CMD
file like this:
@echo off
SET PHP_BIN=k:\path\to\my\php.exe
php_win myscript.php
And everything will work :-)
- Frank
> [..]
> > > HI again, I can still not get 0.5 to run unless php is in
> > the c:\php4
> > > directory,
> > > putting the PHP .exe that ships with 0.5 anywhere else fails.
> > >
> > > can anyone else on windows confirm otherwise please.
> [..]
>
> thats right, i have the same problem when trying to run any scripts with
> php_win.exe
>
> using php.exe will work ..
>
> looks like php_win.exe needs a php.exe in c:\php4 or d:\php4
>
>
> --
>
> * come in and explore ..*
> http://www.favo.tv
> _the world in your hands_
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>