Re: [INTERNALS-WIN] STDIN missing.

From: Date: Tue, 25 Aug 2009 22:30:14 +0000
Subject: Re: [INTERNALS-WIN] STDIN missing.
References: 1 2 3 4 5 6  Groups: php.internals.win 
Request: Send a blank email to internals-win+get-584@lists.php.net to get a copy of this message
Garrett Serack wrote: > Look at the (Default) and use that to look up the installed handler for PHP: > > reg query HKEY_CLASSES_ROOT\PHPFile\shell\open\command > > ('PHPFile' may be different depending on what tools you may have installed.) > This displays: > > HKEY_CLASSES_ROOT\PHPFile\shell\open\command > (Default) REG_SZ C:\PROGRA~1\PHP\php-win.exe "%1" > > To Change the setting: > > reg add HKEY_CLASSES_ROOT\PHPFile\shell\open\command /ve /t REG_SZ /d > "c:\php\php.exe" /f > > Where 'c:\php\php.exe' is the path to PHP you want to have enabled. Whoops... that's actually wrong, you have no way to get argv[] that way. The registry entry for such things is conventionally... command.exe "%1" %* c.f. batfile, wsh, etc.

« previous php.internals.win (#584) next »