ryland22 Posted April 28, 2008 Share Posted April 28, 2008 How come when I create a bat file with this command: "c:\Program Files\Internet Explorer\IEXPLORE.EXE" I click the file manually and it opens ie, but if I run through php on localhost using exec, and call the same .bat file, it does nothing. Is there a way around this? Are there some permissions I need to modify??? Link to comment https://forums.phpfreaks.com/topic/103312-exec/ Share on other sites More sharing options...
DarkWater Posted April 28, 2008 Share Posted April 28, 2008 Don't use Windows. I mean uhh.....*Runs* Link to comment https://forums.phpfreaks.com/topic/103312-exec/#findComment-529120 Share on other sites More sharing options...
rhodesa Posted April 28, 2008 Share Posted April 28, 2008 As far as I know, PHP won't run 'interactive' programs Link to comment https://forums.phpfreaks.com/topic/103312-exec/#findComment-529121 Share on other sites More sharing options...
ryland22 Posted April 28, 2008 Author Share Posted April 28, 2008 What I'm trying to do is to print 3 webpages from an onclick event. The users are on windows so I have no choice. Essentially, I wanted to call a bat file that would run ie in the background and print out 3 localhost webpages. Link to comment https://forums.phpfreaks.com/topic/103312-exec/#findComment-529122 Share on other sites More sharing options...
rhodesa Posted April 28, 2008 Share Posted April 28, 2008 As far as I know, not possible. What you can do, is open three popup windows from an onclick, and inside each of those pages, add a window.print() to the onload. This will at least prompt them to print the page. Link to comment https://forums.phpfreaks.com/topic/103312-exec/#findComment-529148 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.