Jump to content

PHP / Perl Nuance


kid_drew

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.