kid_drew Posted April 21, 2007 Share Posted April 21, 2007 Hi guys, Ok, so here's the setup. I have a drawing program written in Java. The user can draw whatever they want and then save their progress to an eps file (vector). I convert the eps file to gif with ghostscript (called via a perl script) to be able to view a thumbnail in the browser. If the user navigates away from the Java applet, the drawing will automatically save and convert. The problem is if a user navigates straight from the drawing page to the thumbnail page, sometimes the conversion does not happen in time and the thumbnail comes up as the previous version (cached). I have tried adding a sleep statement to the perl script, which doesn't work because it is a background process. I have also tried adding a sleep statement to the top of my thumbnail script, and that doesn't seem to work either. Anyone have any ideas? Link to comment https://forums.phpfreaks.com/topic/48032-php-perl-nuance/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.