Execute php script in a bat file: Difference between revisions

Jump to navigation Jump to search
m
Tags: Mobile edit Mobile web edit
Tags: Mobile edit Mobile web edit
Line 87: Line 87:
</pre>
</pre>


Possible solutions: (1) add {{kbd | key=<nowiki>--</nowiki>}} after php script (2) remove {{kbd|key=<nowiki>-f</nowiki>}} option from command
Possible solutions: (1) add double dash symbol {{kbd | key=<nowiki>--</nowiki>}} after php script (2) remove {{kbd|key=<nowiki>-f</nowiki>}} option from command
<pre>
<pre>
c:\path\to\php.exe -f "c:\path\to\php_script.php" -- -var1=value1
c:\path\to\php.exe -f "c:\path\to\php_script.php" -- -var1=value1
Line 102: Line 102:
Correct: c:\path\to\php.exe "c:\path\contain white space\php_script.php"
Correct: c:\path\to\php.exe "c:\path\contain white space\php_script.php"
</pre>
</pre>


== Related articles ==
== Related articles ==
Anonymous user

Navigation menu