I have written a simple script in ArcGIS environment and I want to run the script through a PHP program.
At present, I am trying this within localhost. In my script, I have defined two parameters. My script is mentioned below.
import arcpy from arcpy import env import os import sys print("Hellow") E=sys.argv E1=sys.argv arcpy.AddMessage(E+"It is running") print(E1)
My expectation is to send 2 parameters to this arc script through a web interface. In my PHP programme, I have called the following command to execute my script.
$output = shell_exec("C:\wamp\www\ssh\php_arc\1\test.py '". $_GET['EmployeeID']."' '".$meek1."'"); echo $output;
This is working. But I am just getting the "Hellow"^^ as a result. I am not getting the other results (data given as parameters).
Can anyone help me to make this successful?