1

I have a php script named test.php

in this file i have to pass one parameter using $argv.

i want to create window batch file that require one argument or parameter and pass that parameter in php script.

forexample in Windows Dos

test.bat hello123

so hello123 is passed to test.php ($argv[1] is first parameter)

Can anyone help me to write batch file for this this kind of script?

1 Answer 1

2
@c:/path/to/php.exe test.php %1
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.