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 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. 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 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
Archived
This topic is now archived and is closed to further replies.