Re: Re: php_win.exe > php.exe not found
| From: | Frank M. Kromann | Date: | Mon, 13 Jan 2003 03:37:44 +0000 |
| Subject: | Re: Re: php_win.exe > php.exe not found | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2903@lists.php.net to get a copy of this message | ||
The statement on this web page is wrong!
php_win.exe searches for php.exe in c:\php4;d:\php4;%PATH% it it is not
found there it looks for the environment variable PHP_BIN.
Looking in current working directory might not be what you want as you
need to copy php.exe and php_gtk.exe to all the directories where yoy want
to execute the file from.
I'll change the code for the next release of php_win.exe to look for
php.exe in the directory where php_win.exe was found.
- Frank
> Use this instead of php_win.exe:
>
> http://www.cweiske.de/phpgtk_apps.htm#phpgtklauncheer
>
> Firepage wrote:
>
> > Hi, if I use the php_win.exe from a batch file all is well in that
>
> > c:pathphp_win.exe -c c:pathphp.ini file.php
> > saved as test.bat executes as expected on-click
>
> > but trying to set a file association in the windows registry using the
> > same command line fails with a 'php.exe was not found ' message.
>
> > I only have this problem with php_win.exe , not php.exe or php-cgi.exe
etc
>
> > it works if the script is in the php root directory but not if its
elsewhere
> - is there a
> > workaround for this ?
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>