HNH992 Posted June 23, 2010 Share Posted June 23, 2010 Hi I have jar file which does some modifications to ZIP files. I can run the JAR file in the windows by writing this command in the Run: C:\file.jar test.zip After executing the Jar file, It will modify test.zip. But I need this Jar file to modify a Zip file in my website by using php. How can I do that? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/205680-how-can-i-execute-a-jar-file-in-php/ Share on other sites More sharing options...
Alex Posted June 23, 2010 Share Posted June 23, 2010 If you have it available, look into exec. Quote Link to comment https://forums.phpfreaks.com/topic/205680-how-can-i-execute-a-jar-file-in-php/#findComment-1076285 Share on other sites More sharing options...
HNH992 Posted June 23, 2010 Author Share Posted June 23, 2010 I wrote this: <?php exec('file.jar test.zip'); ?> Than I ran the php file. but the page still looping and nothing happens Quote Link to comment https://forums.phpfreaks.com/topic/205680-how-can-i-execute-a-jar-file-in-php/#findComment-1076294 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.