I need to start a web browser (chrome - firefox ..) using exec
I tried to do this using a bat file (this method is mentioned here )
C:\Users\farok\AppData\Local\Google\Chrome\Application\chrome.exe www.google.com
when I open a file using windows, everything goes fine, but nothing happens when I open it with exec
and I tried to do this using the jar file of the BrowserControl class
BrowserControl.displayURL("www.google.com");
and same as bat file, so is there any way to do this?
note: im using wamp 2.2, Apache 2.0, PHP V5.3.8
Update
I found that after running this command
exec('"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "www.google.com" 2> errors.txt');
The firefox add-on is open in the task manager, but the browser interface is not visible .. any ideas?
source share