Need example to get command line parameter in PHP

phpdave

New member
Please provide an example on how to read the text passed on the command line to the compiled .exe in a PHP script. T

Thanks
 
I am referring to:
Code:
 compiled_phpapp.exe  "some parameter text here"
looking for example … in the context of an executable complied by exeoutput

Thanks
 
The link by Gilmichel is available for CLI programs made with ExeOutput.
For GUI apps, see this explanation:
1131_2.png
Can I pass parameters to the exe? How to (ExeOutput)
Sorry, I figured this out. I should read the documentation first :|. If anyone’s interested, here’s the HEscript: function GetPassedParameter(p_iIndex:Integer): String; begin Result := ParamStr(p_iIndex); end; Then in the PHP file: <?php print_r(exo_return_hescriptcom("MyScript.GetPassedParameter|1","HESCRIPT_MISSING")); ?> Admin: feel free to delete this pointless thread!
 
Last edited:
Back
Top