|
Posted by Raj Shekhar on 09/04/05 21:39
Dan Trainor <dan.trainor@gmail.com> writes:
> Hello, all -
>
> This is a question that could depend on a completely different (yet,
> relayed) subject, so I'm sending this email to both php-general@ and
> httpd@users.apache.org. I thank you in advance for your understanding.
>
> I am currently generating some images on the fly using some of PHP's
> image generation and rendering functions. I'm having loads of
> success, and like the results that I see.
>
> What I'd like this script to do is, to create symlinks to the
> origional image, and then when the script is done running, the
> symlinks are deleted. Basically trying to make it so that the
> origional image is not known to the client or browser.
In your page where you display the image, put in the tag <img
src='imgenerator.php'>, where imagenerator.php is your script which
creates the images. You can add tests in your imagenerator.php script to
make sure that the user has some session variables set and the user is
not calling the imgenerator directly. That way you will not have to
worry about the browser knowing about the original image. However, the
user will still be able to save the image to his hard disk.
--
Raj Shekhar
blog : http://rajshekhar.net/blog home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer
[Back to original message]
|