Do you have a question? Post it now! No Registration Necessary. Now with pictures!
September 6, 2013, 6:58 am
rate this thread
The exec() works well when the php file and batch file are in the same directory but it do not work if the batch file is present in another folder and you have to specify the path.
I have tried using relative as well as absolute paths but nothing has worked so far. For example my php file is in folder1 and batch file is in folder2 so I tried in following ways: (folder2 is present inside folder1)
Also tried realpath() but it also didn't help.
Please reply if you have experience handling this issue.