Jump to content


Photo

How To Create A Php Photo Album


  • Please log in to reply
29 replies to this topic

#1 Bohatir

Bohatir

    Family Friend

  • Members
  • PipPip
  • 94 posts

Posted 24 February 2006 - 10:03 AM

I am a complete idiot in PHP, I dont know anything!!!!

But I want to have a PHP photo Album. Can someone write me a tep by step tut on what to upload into what folder, and what to write, and how to setup a simple album. I want an album that shows thumbnails, and then if people want a bigger full size pic, they can click on the thumbnail.

AGAIN dont assume I know naything, because I dont. I have tried installing JALBUM by my self, i think I blew up China in the process.

PLEASEEEE!!! i am desperate

#2 TCH-Rob

TCH-Rob

    Help Desk Manager

  • Members
  • PipPipPipPip
  • 7,797 posts

Posted 24 February 2006 - 10:15 AM

So that's what that bang was. I use Gallery myself. It has a good set of instructions with it and I think we may have something laying around here as a guide as well.

#3 TCH-Bruce

TCH-Bruce

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 20,146 posts

Posted 24 February 2006 - 11:33 AM

Gallery setup instructions

Bruce Richards
Forum Moderator
TotalChoice Hosting, Inc.
Webhosting by Total Choice Web Hosting - General Support Forum

I am a Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.


#4 porky

porky
  • Members
  • 1 posts

Posted 28 April 2006 - 05:19 PM

simple php photo album script
just put php file to a folder with pictures

#5 TCH-Bruce

TCH-Bruce

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 20,146 posts

Posted 28 April 2006 - 05:33 PM

Welcome to the forums porky. :)

Nice script.

Bruce Richards
Forum Moderator
TotalChoice Hosting, Inc.
Webhosting by Total Choice Web Hosting - General Support Forum

I am a Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.


#6 wampthing

wampthing

    Crazy Uncle Dave

  • Members
  • PipPipPipPip
  • 409 posts

Posted 28 April 2006 - 07:21 PM

Cool script porky.
Thanks
Dave Jensen (Wampthing)
~I'm not as confused as you think I am... on the other hand, maybe I'm not~


#7 TCH-Don

TCH-Don

    Immediate Family

  • Members
  • PipPipPipPip
  • 11,642 posts

Posted 28 April 2006 - 09:25 PM

Welcome to the forums porky :)

#8 TCH-Thomas

TCH-Thomas

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 15,180 posts

Posted 29 April 2006 - 04:29 AM

Welcome to the forum, porky. :)
Thomas Jikrantz
Forum Moderator
TotalChoice Hosting, Inc.

Any links or suggestions for third party software/sites should be used at your own risk. My opinions and recommendations are not necessary those of TCH and TCH is not responsible.

As a Forum Moderator I can assist in answering many of your hosting related questions. However, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.
Web Hosting by Total Choice Web Hosting - 24/7 Help Desk

#9 TCH-JimE

TCH-JimE

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 2,738 posts

Posted 02 May 2006 - 03:25 AM

Welcome to the forums Porky, I would also suggest gallery. Any problems, give us a shout!

JimE
J

#10 abinidi

abinidi

    Immediate Family

  • Members
  • PipPipPipPip
  • 1,420 posts

Posted 02 May 2006 - 11:04 AM

Welcome to the forums, Porky!

Bohatir,

You should check out the Image Gallery scripts provided by Fantastico. Gallery is included, as are Coppermine (what I use), and 4Images Gallery.

Each of these are one-click installs, and one-click uninstalls, so they are very easy to try out to see if you like them.

Just a thought.
Paul Pehrson
Herriman, UT

Posted Image Posted ImagePosted ImagePosted ImagePosted Image



#11 sheryltoo

sheryltoo

    Distant Family

  • Members
  • PipPipPip
  • 153 posts

Posted 27 January 2007 - 02:51 PM

I've never been able to add a photo album to my site cause I never understood how to do it, but I've been following the detailed instructions for downloading Gallery and was doing quite well until I got to a page on the Configuration script that's looking for a path to store my photos.
It says they recomend you store them in a directory that isn't accessible to the web.
It showed a Directory path and since I didn't know what they were talking about, I figured I'd just use what was typed in but the next page gave me error messages saying the directory didn't exist.
Now I need to figure out how to set up a directory to store my photos and I'm not sure if that was included in your directions.
Everything on the error page sounds Greek to me.

I hope it's ok to copy and paste what this storage page is telling me to do. If I shouldn't have copied it, I'm sorry and you can delete it.
Gallery needs a directory to store your images. The directory we chose for you will work, but its location or current name does not provide maximum security. Either select a new directory outside of the document root directory or add a random string to the end of the directory name (e.g. g2data_fd74f557db).

If someone could explain in simple form what I need to do, I'd really appreciate it.
Thanks.
Sheryl

#12 TCH-Thomas

TCH-Thomas

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 15,180 posts

Posted 27 January 2007 - 03:03 PM

This means you need to create a folder (g2) outside the public_html directory then when gallery setup asks for the path enter "/home/cpanelusername/g2" (without the quotes).

NOTE: Replace cpanelusername with yours and g2 can be what they tell you to or anything you want, just as long the name is the same as in the g2 part above.
Thomas Jikrantz
Forum Moderator
TotalChoice Hosting, Inc.

Any links or suggestions for third party software/sites should be used at your own risk. My opinions and recommendations are not necessary those of TCH and TCH is not responsible.

As a Forum Moderator I can assist in answering many of your hosting related questions. However, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.
Web Hosting by Total Choice Web Hosting - 24/7 Help Desk

#13 sheryltoo

sheryltoo

    Distant Family

  • Members
  • PipPipPip
  • 153 posts

Posted 27 January 2007 - 03:22 PM

This means you need to create a folder (g2) outside the public_html directory then when gallery setup asks for the path enter "/home/cpanelusername/g2" (without the quotes).

NOTE: Replace cpanelusername with yours and g2 can be what they tell you to or anything you want, just as long the name is the same as in the g2 part above.


I created a directory called g2 and typed the path like you showed me but now I have an error that says this is a read only.
Either I'm not understanding something or I'm doing something wrong.
Sheryl

#14 TCH-Bruce

TCH-Bruce

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 20,146 posts

Posted 27 January 2007 - 03:27 PM

Change the permissions of the folder "g2" to 777 and that error will go away.

Bruce Richards
Forum Moderator
TotalChoice Hosting, Inc.
Webhosting by Total Choice Web Hosting - General Support Forum

I am a Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.


#15 TCH-Thomas

TCH-Thomas

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 15,180 posts

Posted 27 January 2007 - 03:29 PM

Its probably just a permission problem (which I forgot, sorry).

Through either a ftp program or cpanels filemanager, please navigate to the g2 folder just created and then set the permission for this folder to 777.
Thomas Jikrantz
Forum Moderator
TotalChoice Hosting, Inc.

Any links or suggestions for third party software/sites should be used at your own risk. My opinions and recommendations are not necessary those of TCH and TCH is not responsible.

As a Forum Moderator I can assist in answering many of your hosting related questions. However, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.
Web Hosting by Total Choice Web Hosting - 24/7 Help Desk

#16 sheryltoo

sheryltoo

    Distant Family

  • Members
  • PipPipPip
  • 153 posts

Posted 27 January 2007 - 03:38 PM

I created a directory called g2 and typed the path like you showed me but now I have an error that says this is a read only.
Either I'm not understanding something or I'm doing something wrong.
Sheryl

That worked Bruce but now I'm stumped on the next page.
BTW, the instructions for setting up Gallery seem to be different from the actual steps. I wonder if the instructions need to be updated.
From the Configuration on, is entirely different from the instructions I'm trying to follow.

In any event, the next page is asking me set up a Data base.
Of course I don't know how to do that.
This is what it's looking for:
Database type: MySQL (all versions)
DB Hostname:
DB Username:
DB Password:
DB Name:
Table Prefix:
Column Prefix

#17 TCH-Bruce

TCH-Bruce

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 20,146 posts

Posted 27 January 2007 - 03:49 PM

More than likely the instructions are old. They are for version 1.x of Gallery and not 2.x

But these variables are the same for most scripts that use a database

DB Hostname: localhost
DB Username: your-cpanel-name_user-name-for-database
DB Password: password for database user
DB Name: your-cpanel-name_database-name
Table Prefix: default value
Column Prefix default value

Gallery2 Installation Instructions

Gallery2 can also be installed with Fantastico in cPanel.

Bruce Richards
Forum Moderator
TotalChoice Hosting, Inc.
Webhosting by Total Choice Web Hosting - General Support Forum

I am a Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.


#18 sheryltoo

sheryltoo

    Distant Family

  • Members
  • PipPipPip
  • 153 posts

Posted 27 January 2007 - 04:05 PM

I think this is getting way over my head.
If I understand your instructions, I'm suppose to put my cpanel name on 2 different lines?
The DB Username line and
DB Name?
I tried doing that and came up with another error saying they couldn't connect to the database information provided and another error message that said
localhost: Access denied for user 'My cpanel name'@'localhost' to database 'mycpanel name'
I've never set up a data base so maybe there was something else I had to do first?
Sheryl

#19 TCH-Thomas

TCH-Thomas

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 15,180 posts

Posted 27 January 2007 - 04:11 PM

Yes, you need to set up the database.
But you could also follow Bruces suggestion to set up a gallery through fantastico in your cpanel.
Thomas Jikrantz
Forum Moderator
TotalChoice Hosting, Inc.

Any links or suggestions for third party software/sites should be used at your own risk. My opinions and recommendations are not necessary those of TCH and TCH is not responsible.

As a Forum Moderator I can assist in answering many of your hosting related questions. However, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.
Web Hosting by Total Choice Web Hosting - 24/7 Help Desk

#20 TCH-Bruce

TCH-Bruce

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 20,146 posts

Posted 27 January 2007 - 04:12 PM

I would recommend scrapping the installation and install it using Fantastico. There you only need to tell it what folder you want to put it in and set an administrative user and password. It will install and configure everything.

If you wish to proceed manually you need to create a database using the MySQL database function. You will also need to create a user to use with that database and add that user to the database.

If you named the database "gallery" and your cpanel name were "sheryl" your database config name would be "sheryl_gallery".

If you created a user named "sheryl" the database user name would be "sheryl_sheryl"

Bruce Richards
Forum Moderator
TotalChoice Hosting, Inc.
Webhosting by Total Choice Web Hosting - General Support Forum

I am a Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.


#21 sheryltoo

sheryltoo

    Distant Family

  • Members
  • PipPipPip
  • 153 posts

Posted 27 January 2007 - 04:35 PM

Thanks for your patience with me. As you can probably tell, I really have no clue what I'm doing so I'm lost unless everything is spelled out.
I did try doing a search after I posted my last question on databases and realized I needed to set one up using SQL. I still may do that because if I ever figure out how to install this photo album program, I'd also like to try and figure out how to install a message board.
It looks as if I need a database for that too.
I think I will scrap this and try installing it using Fantastico. Hopefully that will be easier but getting back to this database, I would like to understand how to set that up.
Is there a tutorial on it or can you answer a couple questions for me like,
1. In the case of setting up a photo album, do you suggest adding a different name then my cpanel name?
2.Would Current user and password be my cpanel name and password?
3.Do you suggest changing anything under priviledges?
4. And do I have to put something in the space for access host? If so, what would I put?
Sheryl

#22 TCH-Thomas

TCH-Thomas

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 15,180 posts

Posted 27 January 2007 - 04:45 PM

Database movie tutorial
Thomas Jikrantz
Forum Moderator
TotalChoice Hosting, Inc.

Any links or suggestions for third party software/sites should be used at your own risk. My opinions and recommendations are not necessary those of TCH and TCH is not responsible.

As a Forum Moderator I can assist in answering many of your hosting related questions. However, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.
Web Hosting by Total Choice Web Hosting - 24/7 Help Desk

#23 TCH-Bruce

TCH-Bruce

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 20,146 posts

Posted 27 January 2007 - 04:48 PM

1. I don't use my cpanel login name for anything other than cpanel. If I create a database I create a user for the database.

2. No, you would create a user (example: user name you add is gallery, the name used in the configuration file will be your-cpanel-name_gallery)

3. Privileges should be ALL

4. No, you don't enter anything into access hosts.

Bruce Richards
Forum Moderator
TotalChoice Hosting, Inc.
Webhosting by Total Choice Web Hosting - General Support Forum

I am a Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.


#24 sheryltoo

sheryltoo

    Distant Family

  • Members
  • PipPipPip
  • 153 posts

Posted 27 January 2007 - 05:36 PM

Thanks for the link to the movie on setting up a database.
I decided to try it since I had gotten this far and really wanted to try and figure this all out.
Also, because to tell you the truth, I got confused with Fantastico and instead of asking what was probably a stupid question, I figured I'd see if I could finish what I started and I did, but now I'm stumped on how to configure ImageMagick which is the graphics module your tutorial recommended.

It says I have to install the ImageMagick binaries on my server, then enter the path in the box below.
The box starts off like this /usr/bin/ and I don't know if I'm suppose to keep that, change that, or add to it.
I also don't know how or where to install the ImageMagick binaries.
Would you be able to help me with this?

#25 TCH-Bruce

TCH-Bruce

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 20,146 posts

Posted 27 January 2007 - 05:44 PM

The path should be /usr/local/bin

The ImageMagick libraries are already installed on the servers.

Bruce Richards
Forum Moderator
TotalChoice Hosting, Inc.
Webhosting by Total Choice Web Hosting - General Support Forum

I am a Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.


#26 sheryltoo

sheryltoo

    Distant Family

  • Members
  • PipPipPip
  • 153 posts

Posted 27 January 2007 - 05:47 PM

The path should be /usr/local/bin

The ImageMagick libraries are already installed on the servers.


OK, thanks.
And thanks for all your help.
Sheryl

#27 sheryltoo

sheryltoo

    Distant Family

  • Members
  • PipPipPip
  • 153 posts

Posted 27 January 2007 - 06:21 PM

I just thought I'd tell you I have successfully installed the photo album.
Again, thanks for all your help.
Now I think I'll look into adding a message board.
Is there a tutorial for that too? I wasn't having much luck finding a tutorial but maybe I wasn't looking in the right place.
Sheryl

#28 TCH-Don

TCH-Don

    Immediate Family

  • Members
  • PipPipPipPip
  • 11,642 posts

Posted 27 January 2007 - 08:37 PM

You could try the one in cpanels fantastico
SMF
just a few mouse clicks, answer a few questions like folder, user and pass word
and done.

#29 sheryltoo

sheryltoo

    Distant Family

  • Members
  • PipPipPip
  • 153 posts

Posted 28 January 2007 - 09:59 AM

Thanks for the suggestion about the message board.
I successfully installed it on my site using Fantastico after I watched the movie tutorial on how to use Fantastico.
Everything is starting to make more sense now that I've installed these two programs.
Sheryl

#30 TCH-Don

TCH-Don

    Immediate Family

  • Members
  • PipPipPipPip
  • 11,642 posts

Posted 28 January 2007 - 04:14 PM

:)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users