View Full Version : PHP Photo Album Script

04-17-2006, 10:24 PM

I followed the instructions as to how to get this script operational and for some reason it's not working. My server supports PHP so I'm not sure what the problem is.

Here's the link to the page I'm working with. http://www.lirvaproductions.com/MyPics.html
I placed the images and the php in the same folder as instructed.

Does anyone have any idea why this script is not working?

Thanks in advance.

04-19-2006, 04:20 AM
Well, the big thing I noticed is that your getpics.php doesn't have permission to load:


Put that in your browser location bar, which returns "403 Permission Denied"

04-20-2006, 08:09 PM
Thanks for your reply. Do I need to change the permission. It is currently set to 755. Or is there something else I need to do.

I really would love to use this script so I appreciate your help. Thanks!

04-21-2006, 12:02 AM
Try setting it to 666, or even 644. Unlike a CGI script, you often don't need to set permissions on a PHP script. If that doesn't work, you might want to email your web host a copy of getpics.php, and ask them if there are certain functions inside the script that your host is disallowing. One possibility, since the script reads the contents of a directory, is that your web host has disabled this ability altogether.

04-21-2006, 03:10 PM
I guess I'm out of luck. I changed the permission and tested it and nothing. I called the web host they told me the script runs fine, everthing is set-up fine but don't know why it isn't working.....strange they say...stranger I say

If you can think of any other possibilities I would really appreciate it.

Thanks ddadmin for your help.

04-21-2006, 03:19 PM
I see it's a *n?x server. Do you have shell access?
If so, please run the following test:
prompt $ cd /var/www/lirvaprodictons/htdocs/bcalbum
prompt $ php getpics.php/var/www/lirvaprodictons/htdocs/bcalbum is the path to the directory containing getpics.php. Post the output here in

04-21-2006, 04:07 PM
Hate to sound like I have no clue what you are asking me to do with the code, but I have no clue.

Do I put it in an html file, upload it, then view it in the browser, then post what I see?

A slight change: instead of "lirvaprodictons" it should be "lirvaproductions"

prompt $ cd /var/www/lirvaproductions/htdocs/bcalbum
prompt $ php getpics.php


04-21-2006, 05:27 PM
Whoops, typo. :)
No, not an HTML file. Do you have shell access? SSH, telnet, rsh, anything like that?

04-21-2006, 05:51 PM
I see (Shell Access) SSH on my list of features.

04-21-2006, 06:10 PM
OK. On *n?x:
Open a terminal
ssh www.futuretechnology.com.br -l userwhere user is your user (probably the same as for your FTP or control panel)
Enter your passwordOr on Windows:Download an SSH client -- PuTTY (http://the.earth.li/~sgtatham/putty/latest/x86/putty.zip) is a nice one. Run it (unzip and run putty.exe for PuTTY). Connect to www.futuretechnology.com.br, port 22, protocol SSH Enter your username and password, probably the same as for your FTP or control panel... then run the commands. The bold is your input.

04-22-2006, 03:47 PM
Hey Twey, Looks like I'm going to use the other photo album script that I found on Dynamic Drive - the one where you enter the images manually.

However, thanks so much for your help!

NoClue ...out!

04-22-2006, 03:53 PM
You should still have a look at this problem, lest it return to bother you again later on.

04-24-2006, 11:03 PM
I will. Thanks for all your help!

05-23-2006, 04:45 PM
i suggest u go to this site


not as good as the script found in DD but it also utilizes the "getpics.php" script