Execute php script in a bat file: Difference between revisions
Jump to navigation
Jump to search
→Case 3: Execute the PHP script file passing parameters
| Line 23: | Line 23: | ||
== Case 3: Execute the PHP script file passing parameters == | == Case 3: Execute the PHP script file passing parameters == | ||
<pre> | <pre> | ||
c:\path\to\php.exe -f "c:\path\to\php_script.php" -- - | c:\path\to\php.exe -f "c:\path\to\php_script.php" -- -c=3 | ||
or | or | ||
c:\path\to\php.exe "c:\path\to\php_script.php" - | c:\path\to\php.exe "c:\path\to\php_script.php" -a=2 | ||
</pre> | </pre> | ||