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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.