I am having an issue with dynamic images populating on a website. Here is the rub...the images are in the images directory of another website on my server. The source code shows that everything is fine. The image is showing up correctly when you view the source code, however it is not showing up on the site, except for a an "x" followed by the alt tag that is in the database. Even when I put the address of the image directly in the <img> tag, it is showing up the same. I placed an image from google on the page, and it is showing up fine on the site. When I look at the image properties it shows the TYPE as being "Not Available" and the Size as being "Not Available" and the Dimensions as being the width and height of the box with the red x and the alt tag. The URL is fine. When I put that in the browser by itself, the image pops right up.
I am at a complete loss as to why this is happening. I don't think it is PHP related or if there is a PHP cure. If anyone out there could answer this for me I will be forever in your debt as I have been messing with this headache all day today.
Thanks for the help!
Sincerely-
Charles
PHP or HTML?
Moderator: General Moderators
Re: PHP or HTML?
Essentially what you're doing is hotlinking from one domain to the other. It sounds like the other site may have some hotlinking prevention set up.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: PHP or HTML?
I am the webmaster of the site and there is no kind of prevention going on there that I am aware of. Is there a control panel setting that I am not seeing? I am also linking from another site, and everything is showing up fine...so I am more than a little confused.
Re: PHP or HTML?
I'd make a plain simple page then that just has a link to that (technically) offsite image. If that works... then hmmm, I'm not sure.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: PHP or HTML?
I'd already done that....
No dice. It is only THIS site. Driving me crazy!
No dice. It is only THIS site. Driving me crazy!
Re: PHP or HTML?
Use Firefox, install Firebug, and see if it shows any errors.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: PHP or HTML?
Showed nothing...when I rolled over the code, it showed the images and dimensions fine. I am at a loss. I don't understand what is going on.