PDA

View Full Version : Webhost or PHP problem?



Jahova
01-07-2008, 09:10 PM
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

Agnostic Bear
01-07-2008, 09:18 PM
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

Independent
01-07-2008, 09:19 PM
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, TomSpitAsk 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

Jahova
02-07-2008, 03:27 PM
Thanks guys, +REP.

Want to hide these adverts? Register an account for free!