bat file problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ajaymohank
    New Member
    • Jan 2008
    • 29

    bat file problem

    Hello friends........ ...

    In my php project, i am invoking a java page by passing values. the java page is invoked from a bat file. my bat file and the php program are stored in the c: drive of my system. the problem is that when i call the php program from any other system. the java page is coming my system, not in the system from which i run the program.ie... java page is executing in server but it is not coming to client...
    i used "exec" statement to invoke the java page.

    how can i solve this problem....

    thanks.
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Because PHP is on the server (server side). anything it executes will be on the server.

    You can't "execute" stuff on the client PC unless the exectable is downloaded on their system.

    The java applet must be integrated into the HTML, or the code that lands on the user's browser.

    atleast from what i understood your problem.

    Comment

    • ajaymohank
      New Member
      • Jan 2008
      • 29

      #3
      Originally posted by dlite922
      Because PHP is on the server (server side). anything it executes will be on the server.

      You can't "execute" stuff on the client PC unless the exectable is downloaded on their system.

      The java applet must be integrated into the HTML, or the code that lands on the user's browser.

      atleast from what i understood your problem.
      Thanks dlite.... but how can i down load the executable to the client machines using php.

      Comment

      Working...