Jump to content

need some advice


jscix

Recommended Posts

Ok, what I want to know is, what is the best way to display a php generated image?

 

I have a script that generates the image but I need to display it on a page, so if I use a header command it will just redirect to the image without the page, correct?

 

So I made it generate a .JPG file, then print the HTML to display it, which works well EXCEPT, I want the script to delete the generated .jpg file after having either a successful form submission or a unsucessful form submission(And Generate a new one if form submission failed) which I got it to do..., BUT

 

the problem now is that if the user completly just LEAVES the page, without submitting at all.. the generated image stays in the directory.. which isn't a good thing.. How can I fix this? Any ideas?

Link to comment
Share on other sites

Hrmm, I could.. I really want to make this script sulf-suffiecent though.

It isn't terribly important, as im just making this as a "learn by doing" kinda thing.

 

Thanks for the imput though, I think I just need to mess with it a bit more.

 

**bashes head on keyboard**

 

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.