Answer the question
In order to leave comments, you need to log in
Php under windows 7 in cli mode does not see arguments?
php 5.3 CLI
windows 7
I want to call php scripts just by calling the file name.
I do so
assoc .php=phpfile<br/>
ftype phpfile="c:\php\php.exe" -f "%1" -- %~2<br/>
touch.php helo<br/>
array(1) {<br/>
[0]=><br/>
string(26) "C:\hg\PHPScripts\touch.php"<br/>
}<br/>
c:\php\php.exe touch.php helo<br/>
array(2) {<br/>
[0]=><br/>
string(9) "touch.php"<br/>
[1]=><br/>
string(4) "helo"<br/>
}<br/>
Answer the question
In order to leave comments, you need to log in
look Process Explorer'om command line.
To do this, organize an infinite loop (30 seconds by default timeout :) ).
Try the following calls:
ini_get('register_argc_argv')
What do both results show?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question