http://php.net/manual/en/features.commandline.phpphpdave said: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
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!
We use essential cookies to make this site work, and optional cookies to enhance your experience.