hello
i am calling .exe file through my php script.
i.e. using exec or system command, i am running exe file that exe file will create on txt file which contains who has logged into domain(i.e. domain user name).
actually once i run exe file the generated file name is according to user itself
for eg if "xyz" is a domain user who logged into domain and if he access the php script (remember php script is calling exe file) the final generated file name will be "xyz.txt"
My problem is if i access the php script through browser i am getting filename as "SYSTEM.txt " where as if i run the script through command prompt its getting properly filename as "xyz.txt" and the username is writing as "xyz"
please let me know the solution for above problem
i am calling .exe file through my php script.
i.e. using exec or system command, i am running exe file that exe file will create on txt file which contains who has logged into domain(i.e. domain user name).
actually once i run exe file the generated file name is according to user itself
for eg if "xyz" is a domain user who logged into domain and if he access the php script (remember php script is calling exe file) the final generated file name will be "xyz.txt"
My problem is if i access the php script through browser i am getting filename as "SYSTEM.txt " where as if i run the script through command prompt its getting properly filename as "xyz.txt" and the username is writing as "xyz"
please let me know the solution for above problem
Comment