Forum Moderators: phranque

Message Too Old, No Replies

Image loading

argh!

         

wonderboy

12:58 pm on May 19, 2004 (gmt 0)

10+ Year Member



Just uploaded a new site, I have placed all the images on a different server (lets say myimages.com)
and all the PHP pages in (mysite.com)

These images are loaded into the pages using MySQL database calls (<? echo $pic?>).

The problem is none of the pictures work, however when I change the pictures in the database to be from somewhere else, say randomsite.com they work fine.

Also, the images I want work fine after I have directly called the images in my browser and then go straight back and load them up in my pages.

What could be causing this?
I think the images are loading, just not being displayed for some reason?

Thanks for your help,

W.

Birdman

1:03 pm on May 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should check the root .htaccess of the image server. I have a feeling the host may have hotlinking blocked by default.

Birdman

wonderboy

1:21 pm on May 19, 2004 (gmt 0)

10+ Year Member



Argh, would this be the case even if u can see each image individually (myimages.com/image1.jpg) in the browser?

I am not sure I have access to .htaccess, I use virtual server type thing.

Thanks for replying,

W.

jetboy_70

1:51 pm on May 19, 2004 (gmt 0)

10+ Year Member



Yes. If this is the issue then it's likely that images will not be displayed under any domain other than myimages.com, and possibly the associated IP.

thecoalman

2:10 pm on May 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I guess it would be quite a coincidence but I just posted a thread yesterday about Norton spam blocker blocking legitimate images because they were in a folder named banners. It actually changes the source code from your site...possibly why you can load them in by directly calling them from the browser. If your running Norton or any other spam blocking type software turn it off and try the pages.

Theres a ton of folder names and sizes which to me makes the deploytation of this software insane...check the thread here for a list of image sizes and folder names, I bet the list runs in the hundreds. [webmasterworld.com...]

Birdman

2:43 pm on May 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Alot of ftp clients hide the .htaccess file by default. You have to change a setting or type -al command to make it show. You probably have permissions to it, but you can't see it.

Another way to get to it is to use your file manager in the control panel of your hosting account, if you have one.

Birdman

Birdman

2:49 pm on May 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try going here:

[webmasterworld.com...]

And enter the url to an image to see what header is returned. It could give some insight.

wonderboy

3:06 pm on May 19, 2004 (gmt 0)

10+ Year Member



The weird thing is that it loads correctly into the pages once it's being loaded up already on it's own... If there was a htaccess block, then would this happen?

I will check it out when I get onto my main computer.

W.