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

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация