Re: Generating images on the fly, linking via symlink?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Trainor <dan.trainor@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx  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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux