I have one batch file on the same directory where my PHP + html code is..is there a way to put a button on my web site so that end user can push button and star batch file on server..??
basicly can I put link or button to execute batch file on the same directory where web site is situated??
MrCoder thanks for code it works...but is there a way to put more then 30 sec. in execution time...becouse it takes more then 30 sec fot my bat fiel to execute...can I prolong that time...??
Hi, thanks a lot guys that helped me solve my problem, i am now able to execute bat files but there is one problem. When i push the submit button it redirects to a blank page of my php file. Is there a way to execute my bat files without going to a blank or another page i mean i just pust the sumbit button and it only executes my bat file without effecting my php page.Do i need javascript for this?My bat file is "@echo off
mode com1:9600,N,8,1 >nul
echo Q> com1"
The second question is about having several buttons and executing several bat files , how to write multiple if else coonditions(nested) or i need to use elseif? Please help me ,i'm new in php.
Thank you
Bookmarks