david8 New member Aug 14, 2012 #1 I’ve registered my app as a protocol handle in the registry and would like to pass parameters like %url% via the browser - is this possible? I var_dump’d $GLOBALS, $arv & $argc and I couldn’t see anything. Thanks Last edited: Feb 23, 2014
I’ve registered my app as a protocol handle in the registry and would like to pass parameters like %url% via the browser - is this possible? I var_dump’d $GLOBALS, $arv & $argc and I couldn’t see anything. Thanks
david8 New member Aug 14, 2012 #2 Sorry, I figured this out. I should read the documentation first :|. If anyone’s interested, here’s the HEscript: Code: function GetPassedParameter(p_iIndex:Integer): String; begin Result := ParamStr(p_iIndex); end; Then in the PHP file: Code: <?php print_r(exo_return_hescriptcom("MyScript.GetPassedParameter|1","HESCRIPT_MISSING")); ?> Admin: feel free to delete this pointless thread! Last edited: Feb 23, 2014
Sorry, I figured this out. I should read the documentation first :|. If anyone’s interested, here’s the HEscript: Code: function GetPassedParameter(p_iIndex:Integer): String; begin Result := ParamStr(p_iIndex); end; Then in the PHP file: Code: <?php print_r(exo_return_hescriptcom("MyScript.GetPassedParameter|1","HESCRIPT_MISSING")); ?> Admin: feel free to delete this pointless thread!