-
Red X not images
Tracked it down to a firewall problem.
WatchGuard firewall: Response denied from http://64.75.7.205:80/attachment.php: Unsafe content type "unknown/unknown"
Is it possible for the php script to return a content type of Image,JPEG so that our firewall will allow the image through?
-
Don't know
SmartWombat-
This same code issue is a problem for some pre-Panther Mac OS users. I don't know if we can change it, though. There is a workaround. Post your images to the gallery first, and then use link to the gallery image. You can use html in your post, or just put the image URL in.
I'll ask about the attachment issue, though. Thanks for telling me about the firewall problem. It isn't something I'd heard about before. But I'm not surprised to hear that it's causing some people problems.
-
http://missionfour.mcinvale.org/rotate.php
Do you see that image or is it a red X? I have it setup to output the header information...
-
I'll check from behind the firewall tomorrow.
I've by-passed it now, which our IT guys don't like :(
It's tomorrow and IT WORKS JUST FINE.
-
Header Information?
Can you explain more? I don't understand what you did. I checked the properties on the images and it's a .php file. That doesn't tell me anything - at least nothing that means anything to me.
-
Quote:
Originally Posted by Photo-John
Can you explain more? I don't understand what you did. I checked the properties on the images and it's a .php file. That doesn't tell me anything - at least nothing that means anything to me.
The reply form the php script is a stream of data.
If I look at the image directly, by putting this "http://missionfour.mcinvale.org/rotate.php" into the address in IE (without the quotes) then the reply that comes back has a CONTENT TYPE indicator at the front, before the image. It is not part of the image, but it's on the envelope that ocntains it..
That content type for images from the site is "unknown/unknown" and is rejected by the firewall as potentially dangerous. It thinks the envelope says it's a letter bomb.
What's been done to the php code behind the image that works, is that it sends a content type identifying it as an Image, in JPEG format, which the firewall lets through as safe.
-
Where the hell is the image now, I saw the image yesterday when it was posted, but now it shows up as a red X with a box surround.
Edit,
Now it is back. Originally just now, the image was missing on the three posts, after posting this reply first time with no edit, it suddenly reappeared.
Re Edit,
And then after posting the edit, it was gone again. Something is really strange happening here.
Very strange me thinks Dr Watson.
-
I wonder if it has something to do with this being an image that is set to refresh to a new image? I haven't seen a red X in any of the posts in this thread. But I do see the image/ad change.
-
Lara,
Thanks for pointing that out, I didn't notice that as I hadn't looked at the properties of the image. It more than likely is probably that fact, as there is a picture there now of a couple of phone keys and the one I saw yesterday was of some US money I think.
-
About that image I posted...
It is a PHP script that reads all image names out of a directory and then picks one randomly to display. It outputs "Content-type:image/XXX" where XXX is replaced by whatever image format it is using. It then outputs the image contents to the file and your browser displays a random image.
I posted it to test to see if Smart Wombats firewall was getting confused at dynamicly generated images.
|