I have a question for PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
buckmajor
Forum Newbie
Posts: 8
Joined: Thu Dec 18, 2008 6:24 pm
Location: Brisbane

I have a question for PHP

Post by buckmajor »

Hi there

Can anyone tell me whats the best way to do a photo gallery for a photographer?
I can design which is not a problem but if my client wanted a to secure his photos, so what would be the best way to do this?

Many thanks in advance.
CHEERS :)
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: I have a question for PHP

Post by omniuni »

There are two options that come to mind.

First, if you're up to using a database, write the images into the database, and process them through GD to add a watermark or generate the image at a reduced size and quality as per what your client requests.

If you want to go a simpler route, just use .htaccess to restrict access to the folder where the images are stored, and use a script to do the manipulations required. If you would like copy of a script to start with, or more specific help, you can PM me.

Note: I did this just recently for some photographer friends of mine!
User avatar
buckmajor
Forum Newbie
Posts: 8
Joined: Thu Dec 18, 2008 6:24 pm
Location: Brisbane

Re: I have a question for PHP

Post by buckmajor »

omniuni wrote:There are two options that come to mind.

First, if you're up to using a database, write the images into the database, and process them through GD to add a watermark or generate the image at a reduced size and quality as per what your client requests.

If you want to go a simpler route, just use .htaccess to restrict access to the folder where the images are stored, and use a script to do the manipulations required. If you would like copy of a script to start with, or more specific help, you can PM me.

Note: I did this just recently for some photographer friends of mine!
Yes! I would gladly seek your help in this one please.

Thanks a lot Omniuni
Post Reply