Skip to content
Advertisement

Executing php script with parameter using powershell

I am trying to call the PHP file by, passing the request_number in the localhost URL using Powershell

In HTML:

JavaScript

I referred to this link but not sure to modify it with parameters. Executing php script on powershell

Update: My PowerShell

JavaScript

Advertisement

Answer

You can use $argv to get an array of arguments passed to the script.

https://www.php.net/manual/en/reserved.variables.argv.php

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement