Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: PHP Photo Album Script

  1. #1
    Join Date
    Nov 2004
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Photo Album Script

    Hello!

    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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Well, the big thing I noticed is that your getpics.php doesn't have permission to load:

    http://www.lirvaproductions.com/bcalbum/getpics.php

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

  3. #3
    Join Date
    Nov 2004
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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!

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.

  5. #5
    Join Date
    Nov 2004
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry

    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.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I see it's a *n?x server. Do you have shell access?
    If so, please run the following test:
    Code:
    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 [code][/code] tags.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Nov 2004
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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"

    HTML Code:
    prompt $ cd /var/www/lirvaproductions/htdocs/bcalbum
    prompt $ php getpics.php
    Thanks!

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Whoops, typo.
    No, not an HTML file. Do you have shell access? SSH, telnet, rsh, anything like that?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Nov 2004
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I see (Shell Access) SSH on my list of features.

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    OK. On *n?x:
    • Open a terminal
    • Type:
      Code:
      ssh www.futuretechnology.com.br -l user
      where user is your user (probably the same as for your FTP or control panel)
    • Enter your password
    Or on Windows:
    • Download an SSH client -- PuTTY 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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •