to upload new changes into our server i have to type something like
uploadTemplates.bat templateid userid password integrationorProductionVar + ENTER
Thas fine but first i need to navigate to the folder where the .bat is,
Question is: can i change all this for a more automatized GUI?? if so, how?
for example a Form asking
user, pass, templateid and integrationorPrdoductionVar (as a select) and it opens the .bat on the background ?
Well, you could do it in PHP if the PHP server runs on the machine where the .bat file is. In order to call a shell command, you can use
system:Note that since this should run on the same system and is only to be used by you, you can get away with not sanitize your data, but normally, you want to escape your shell arguments with
escapeshellargand do as much checking as possible so that someone can’t exploit this and run malicious commands on the system.