Re: [INTERNALS-WIN] STDIN missing.

[email protected] ("William A. Rowe, Jr.")
Newsgroups php.internals.win
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.