Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default Webhost or PHP problem?

    I'm using Jewish Bear's upload script he posted a few days ago.
    I have got it all working, their is just one problem;

    When I upload an image.
    The image link and thumbnail are both broken as they show image.PNG
    Notice the capital .PNG - And on my webserver they are lowercase and lowercase and uppercase extensions wont show as the same thing, if you know what I mean.
    -
    This makes the links break, but when I visit the image with a lowecase .png they work, is their anything I can do, to stop this.
    -
    It could have somthing to do with my host, the php or .htaccess?
    -
    Thanks, TomSpit
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  2. #2
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by TomSpit View Post
    I'm using Jewish Bear's upload script he posted a few days ago.
    I have got it all working, their is just one problem;

    When I upload an image.
    The image link and thumbnail are both broken as they show image.PNG
    Notice the capital .PNG - And on my webserver they are lowercase and lowercase and uppercase extensions wont show as the same thing, if you know what I mean.
    -
    This makes the links break, but when I visit the image with a lowecase .png they work, is their anything I can do, to stop this.
    -
    It could have somthing to do with my host, the php or .htaccess?
    -
    Thanks, TomSpit
    just $extension = strtolower($extension); on the line after the extension variable is created


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  3. #3
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by TomSpit View Post
    I'm using Jewish Bear's upload script he posted a few days ago.
    I have got it all working, their is just one problem;

    When I upload an image.
    The image link and thumbnail are both broken as they show image.PNG
    Notice the capital .PNG - And on my webserver they are lowercase and lowercase and uppercase extensions wont show as the same thing, if you know what I mean.
    -
    This makes the links break, but when I visit the image with a lowecase .png they work, is their anything I can do, to stop this.
    -
    It could have somthing to do with my host, the php or .htaccess?
    -
    Thanks, TomSpit
    Ask your visitors not to upload capitalized PNG extensions, or alert them to re-name it.

    I'd help you more but I really don't know much about PHP, good luck finding an answer

  4. #4
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    Thanks guys, +REP.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


Posting Permissions

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