Re: new errors with 0.5.1 on Win2k & XP - DOH
| From: | Markus Fischer | Date: | Wed, 01 May 2002 18:17:58 +0000 |
| Subject: | Re: new errors with 0.5.1 on Win2k & XP - DOH | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1891@lists.php.net to get a copy of this message | ||
Hi,
yes, they changed the behaviour. I found myself using
php.exe -c . <phpscript>
most of time, i.e. having a php.ini in the current directory
with the relevant configuration.
PHP CLI is still not up to the task of a full shell
application. Outstanding issues are e.g. reading a PHP.INI
from a user directory (e.g. ~/.php.ini on unix, or whatever).
- Markus
On Wed, May 01, 2002 at 10:03:18AM -0700, Frank M. Kromann wrote :
> Hi All,
>
> The files in the 0.5.1 distribution works for me :-) and this is how:
>
> php-cgi.exe (the old version of php.exe, not included with this distribution) looked for the
> php.ini file in the current working directory and in \winnt (\windows).
>
> php.exe seams to be looking in \winnt (\windows) only. I'll see if I can change this.
>
> Both programs can use the -c switch to use an optional location of the ini file. The value can
> point to a directory or to a specific file.
>
> php_win.exe is a small wrapper program to launch php.exe without to DOS window.
> It Uses the environment variable PHP_BIN to specify the executable to launch. If PHP_BIN is
> undefined it will look for php.exe in the directories included in the PATH, in c:\php4 and d:\php4.
>
> I have just added a new feature where php_win.exe will use PHP_INI_PATH to look for the
> configuration file. This can either be a directory or a specific file.
>
> to use php_win.exe you shoud set
>
> PHP_BIN=c:\GTK051
> PHP_INI_PATH=c:\GTK051
>
> I have just updated my distribution site with the latest files.
> http://kroman.info/php4.php
>
> - Frank
>
> > I know, Simon, I'm on it now, thanks.
> >
> > Just waiting to see what Frank tells you :)
> >
> > ----- Original Message -----
> > From: "firepages.com.au" <fire@firepages.com.au>
> > To: "Kirk Babb" <kbcd@worldnet.att.net>
> > Cc: "PHP-GTK" <php-gtk-general@lists.php.net>
> > Sent: Wednesday, May 01, 2002 5:08 PM
> > Subject: Re: [PHP-GTK] new errors with 0.5.1 on Win2k & XP - DOH
> >
> >
> > > :)
> > > Hi, Kirk I need the WINDIR\php.ini for php as an apache module
> > >
> > > I am, as it happens, a dill anyway (hear hear( I hear)) , the php.ini that
> > > I was referencing from the command line was a dodgy one in the first place -
> > > (a copy of my normal one ::so it was pointing includes and extensions
> > > everywhere)
> > > So, by dumping everything in one directory , this command line worked fine ,
> > > as did substituting php_win.exe
> > > c:\GTK051\php.exe -q -c c:\GTK051\php.ini -f e:\GTK\samples\tree.php
> > > at least it appears to work, I am kinda scared to reboot now :)
> > >
> > >
> > >
> > > Manual writers ...., stuff like this, just getting started, seems to be the
> > > biggest problem for most of us dull windows users (like myself) - I get a
> > > lot of mail about GTK & PHP and a lot of peeps are interested but can not
> > > get off the ground, not even a hello world.
> > >
> > > that's as most of win32 users interested in php-gtk have php already
> > > installed as an apache module - that's cos they are php heads, that's why
> > > they want to look at php-gtk ....
> > >
> > > Soooo ... if they follow the instructions and dump dll's in system32 &
> > > .ini's in WINNDIR\ etc things start to go horribly wrong for both php-gtk
> > > &&
> > > apache/php , is it then actually a good idea to describe the install as per
> > > current readme / dir structure ??? - seems to me that dumping everything in
> > > the one directory with a very inoffensive php.ini and a batch file for
> > > starting one of the samples !!! showing the existence of the -c switch
> > > !!!would be more useful (for windows heads) ??
> > >
> > >
> > > sorry for my erroneous initial post :o
> > >
> > > Regards,
> > > Simon Wheeler
> > > firepages
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Kirk Babb" <kbcd@worldnet.att.net>
> > > To: "firepages.com.au" <fire@firepages.com.au>
> > > Sent: Wednesday, May 01, 2002 10:48 PM
> > > Subject: Re: [PHP-GTK] new errors with 0.5.1 on Win2k & XP
> > >
> > >
> > > > Could you keep the ini files in each respective directory instead of one
> > > in
> > > > the winnt dir (for the official php distribution) and one in php-gtk dir?
> > > > does your environmental path include the "main" php dir? Remove it
> > > > from
> > > > your environment variables if so. HTH
> > > >
> > > >
> > > > -Kirk
> > > >
> > > > (side note - for some reason I'm not getting every post to the group, more
> > > > like every other post, so if this has been suggested and tried please
> > > ignore
> > > > and forgive me)
> > >
> > >
> > >
> > > --
> > > PHP-GTK General Mailing List (http://gtk.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah...
none :)"