Results 1 to 9 of 9

Thread: PHP Photo Album

  1. #1
    Join Date
    Dec 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Photo Album

    1) Script Title: PHP Photo Album

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...photoalbum.htm

    3) Describe problem: I have used this script to display photos on my website, and it is ideal for my purposes. It works fine in localhost (Apache), but doesn't work when I upload to my ISP's server on the Internet. The ISP server doesn't seem to regognise the getpics.php code. Does anyone have any idea what the reason may be? Sorry this request is so vague!

    Dave.

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Your web probably doesn't allow the use of PHP on your website, but you'll have to ask them whether you need to pay to get it.

    Which web host are you using at the moment?

  3. #3
    Join Date
    Dec 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    My provider does allow PHP, I have been using PHP on my website for years. My provider is PlusNet.

  4. #4
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Link to the site?

    Then I can see that it might be

  5. #5
    Join Date
    Dec 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks. This page is the index of photo albums. Click on any link to see the problem:
    http://ccgi.davewylie.plus.com/photos.php

  6. #6
    Join Date
    Dec 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ah, just checked it. Only the Autumn Collection should be active, as I have been playing with the code to test various options.

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The file is there and working, but you have put the wrong src attribute to it (as viewed in the served source code of the showPhotos.php?album=Autumn%20Collection page):

    Code:
    <script src="gallery/AutumnCollection/getpics.php/"></script>
    Remove the trailing / from it, your server thinks it's a folder with that there.

    There could also be other problems.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Dec 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, that seems to have sorted the problem. So, other servers are less fussy on correct code, I guess.

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'd say less precise, rather than less fussy, and only if that's the case. It might also have been a (that) slight difference in the live code versus the local code.

    The reason I say less precise is, if you wanted to designate, say:

    Code:
    gallery/AutumnCollection/getpics.php/index.php
    you should be able to do so as:

    Code:
    gallery/AutumnCollection/getpics.php/
    but since the 'less fussy' server sees that as:

    Code:
    gallery/AutumnCollection/getpics.php
    things could get weird.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •