Raven5 Posted March 20, 2005 Posted March 20, 2005 (edited) Here is the problem: Photo Gallery If you select London Gallery 1, it works as it should. Working Gallery Source: <td class="imgThumb"><a href="/photos/index.php?showGal=2&view=London_feb2005_1/IMG_0017#imageFull"><img src="/photos/London_feb2005_1/thumbnails/tn_IMG_0017.jpg" alt="" /></a></td> If you select Londong Gallery 8, none of the images show up. Broken Gallery source: <td class="imgThumb"><a href="/photos/index.php?showGal=9&view=London_feb2005_8/IMG_2241#imageFull"><img src="/photos/London_feb2005_8/thumbnails/tn_IMG_2241.jpg" alt="" /></a></td> All the directories exist, and all the images were uploaded in ascii mode, not binary. The most annoying part is that the images exist too. I read on a previous post similar to this that the problem was related to hotlink protection, but I have mine turned off. Please, any help is appreciated, but I am not a novice. The gallery is built from a php script, and the urls are auto-generated based on the existence of the files they are linking to. Thanks in advance, and any help with this would be appreciated! Edited March 20, 2005 by Raven5 Quote
TCH-Don Posted March 20, 2005 Posted March 20, 2005 From University of California, Irvine site. FTP programs can transfer files in three ways ASCII, Binary, and Automatic. We recommend using Automatic (Auto) when transferring files to/from EEE. Automatic (Auto) can be used when the file type is not known or there is a mix of binary and ASCII files. ASCII is used to transfer text files, such as HTML and Microsoft Word documents. Binary files are non-text files, such as images, executables, etc. So you may want to re send your images in the auto or binary mode. But I don't think that will help as the images seem to be there but if I paste the image path/name into the url window it acts like a hotlink problem i.e. Forbidden You don't have permission to access /photos/London_feb2005_7/thumbnails/tn_IMG_2231.jpg on this server. You may want to double check your .htaccess file to look for some sort of hotlink protection in there. Quote
TCH-Andy Posted March 20, 2005 Posted March 20, 2005 Welcome to the forums Looking at your source code, you use 'case' in your naming - ie. London_feb2005_2/IMG_0056.jpg. Please note that the servers are case sensitive - hence if you put upper case JPG on the end, this is different to lower case jpg. So it might be worth checking what case you have used. Quote
Raven5 Posted March 20, 2005 Author Posted March 20, 2005 Thanks for the replies! FTP Mode - my first post was mistated; I ftp'd the files in BINARY mode, not ascii. Automatic mode switched back and forth too much, so I set it to only upload Binary. .htaccess - The only thing in my .htaccess file is for directory listing restrictions. However, if it was the .htacces file, wouldn't affect all the directories in the /photos/ dir? Right now, it only affects most, not all. Case Sensitivity - The script that generates the urls actually uses the folder name and the image name and writes them as a string. So the names should literally be correct for any file in any dir/subdir/ Don - you hit on the issue in the second part of your post. The images are there, but for some reason aren't available to the webserver or anything requesting them. There are not htaccess files in these subdirectories, can you think of any other way they are being restricted/forbidden? I appreciate the welcome, it's good to be part of a forum where people actually post replies! Thanks again! Quote
Raven5 Posted March 20, 2005 Author Posted March 20, 2005 Wait, Andy was right! I checked again and it looks like the new files were uploaded as .JPG the script is looking for .jpg. Sorry, for missing this, I've been looking at my code so long that I just needed another set of eyes to find it. I knew it was something simple. Thanks again guys! Quote
stevevan Posted March 20, 2005 Posted March 20, 2005 Welcome to the forums Raven5. Glad to hear you got things working. It's sometimes the little things that cause the biggest problems! Quote
Pendragon Posted March 20, 2005 Posted March 20, 2005 London_feb2005_2/IMG_0056.jpg. Please note that the servers are case sensitive - hence if you put upper case JPG on the end, this is different to lower case jpg. So it might be worth checking what case you have used. <{POST_SNAPBACK}> Everything else aside, I have to say this is the single most annoying 'feature' of *nix servers. I started trying to just use lower case for everything after that, when run on windows servers it could care less what the case is, but if you transfer to a *nix service, you end up having to do a lot of editing! Quote
TCH-Bruce Posted March 20, 2005 Posted March 20, 2005 Everything else aside, I have to say this is the single most annoying 'feature' of *nix servers. I started trying to just use lower case for everything after that, when run on windows servers it could care less what the case is, but if you transfer to a *nix service, you end up having to do a lot of editing! That's not a fault of *nix systems, it's a fault of Windows systems. And upper case "A" is not the same as an lower case "a", just look at the ascii values for both characters. They are two distinct values. Windows does not treat them as such when it comes to file names. Quote
TCH-Don Posted March 20, 2005 Posted March 20, 2005 Where are my manners Welcome to the Family Raven and your new home! Glad its working, yep its best to stick to all lower case if you can. You can separate word with an underscore to make them more readable. Like my_cat.jpg We really are like family here. So if you need anything, just ask your new family! We love to help Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.