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??? Quote Link to comment 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* Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.