Connecting Tech Pros Worldwide Forums | Help | Site Map

bat file problem

Newbie
 
Join Date: Jan 2008
Posts: 29
#1: Mar 15 '08
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's Avatar
Expert
 
Join Date: Dec 2007
Location: Moon, Dark Side
Posts: 1,095
#2: Mar 16 '08

re: bat file problem


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.
Newbie
 
Join Date: Jan 2008
Posts: 29
#3: Mar 17 '08

re: bat file problem


Quote:

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.
Reply