By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,646 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,646 IT Pros & Developers. It's quick & easy.

Photo Album

P: n/a
I am very new to php, but eagerly picking it up. Thanks in advance for
any assistance.

I have a site I am working on that uses "PHP frames" - url is like
http://www.xyz.com/home.php?page=photo

inside home.php are several case statements that then tell the
webserver which page to load. I have been trying to create small 7
picture photo album in file photo.php. I want to have the thumbs appear
at the top, then the main image in the middle at 640pix wide, then a
text link at the bottom for previous and next.

I have the basics working by hacking up somebody elses album, but I
can't seem to get it to work that when you click on one of the
thumbnails, it reloads the page and displays the image you clicked on.
the original was a two page solution and I really need to to stay
within the framework of the "frames" mentioned above.

I think at this point it would be easier to start from scratch. So here
is my structure if it helps. I'd like to see a one php file solution
(or two if a config.php was needed) with the following features:
thumbnail folder /thumbs - each one is prefixed with tn_ (maybe a
variable for WxH)
main picture folder /images - each one is 640px wide (another var?)
uses whatever names where in the images directory, sorts them A-Z, as
long as they end in .JPG
created thumbnails if they didn't exist using GD.
thumbnails shown in a table, so nice variable for how many columns of
thumbnails would be sweet.

Pointers, suggestions, solutions are all welcome. Thanks

Mar 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
el************@gmail.com wrote:
I am very new to php, but eagerly picking it up. Thanks in advance for
any assistance. I have a site I am working on that uses "PHP frames" - url is like
http://www.xyz.com/home.php?page=photo inside home.php are several case statements that then tell the
webserver which page to load. I have been trying to create small 7
picture photo album in file photo.php. I want to have the thumbs appear
at the top, then the main image in the middle at 640pix wide, then a
text link at the bottom for previous and next. I have the basics working by hacking up somebody elses album, but I
can't seem to get it to work that when you click on one of the
thumbnails, it reloads the page and displays the image you clicked on.
the original was a two page solution and I really need to to stay
within the framework of the "frames" mentioned above. I think at this point it would be easier to start from scratch. So here
is my structure if it helps. I'd like to see a one php file solution
(or two if a config.php was needed) with the following features:
thumbnail folder /thumbs - each one is prefixed with tn_ (maybe a
variable for WxH)
main picture folder /images - each one is 640px wide (another var?)
uses whatever names where in the images directory, sorts them A-Z, as
long as they end in .JPG
created thumbnails if they didn't exist using GD.
thumbnails shown in a table, so nice variable for how many columns of
thumbnails would be sweet. Pointers, suggestions, solutions are all welcome. Thanks


in you favorite search engine - look for imagebrowser.php

Mar 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.