getting problem in running exe file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sbettadpur
    New Member
    • Aug 2007
    • 121

    getting problem in running exe file

    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
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    When you access the PHP page through a browser, the code is being executed by the user that is running the HTTP server, not the user requesting the page.
    Which in your case appears to be the user 'SYSTEM'.

    Not that I really know enough about your system to give any solid answers :P

    Comment

    Working...