Topic: Trouble behind IE, SSL and PHP to show images...

Hello folks,

I gotta realy wierd situation here.

I'm building an highly secure solution for a customer and I use SimpleViewer Pro 2 to display some photos to a particular loggin customer.

Behind simple viewer, I'm on a LAMP server. I'm running with .htaccess security where the photos are located.

In my xml I use imageURL=image.php?path=something.jpg to work with the security level that only allow php script from localhost. This image.php simply return an header image jpeg type with the jpg file content.

Tested browser with and without HTTPS
============================

  • Chrome 1 HTTPS OK HTTP OK

  • Safari 4    HTTPS OK HTTP OK

  • FireFox 3  HTTPS OK HTTP OK

  • Explorer7 HTTPS NO HTTP OK

  • Explorer8 HTTPS NO HTTP OK

Yes, it works at all under any browser, when i simply use a normal .jpg path under imageURL (Ex. imageURL=something.jpg) but my point is where is the issue by using imageURL=image.php?path=something.jpg under IE7-8 behind HTTPS ?!?

Can you tell me if this look like an issue with SimpleViewer application ... I'm looking for issue with IE7-8 behind SSL and image-type jpeg for my part.

See file's content above this.

image.php
============================
$contents = readfile('something.jpg');
header("Content-Type: image/jpeg");
echo $contents;

..../529/.htaccess
============================
order deny,allow
deny from all

..../529.xml
============================
<?xml version="1.0" encoding="UTF-8"?>
<simpleviewergallery

    buttonBarPosition="OVERLAY"
    captionPadding="5"
    captionBackOpacity="0.5"
    captionPosition="OVERLAY_BOTTOM"
    stageBorder="0"
    stageVPadding="6"
    stageHPadding="0"   
    titlePosition="NONE"
    thumbPosition="BOTTOM"
    thumbNavStyle="NUMERIC"
    thumbHoverFrameWidth="2"
    thumbRows="1"
    thumbColumns="6"
    frameWidth="1"
    frameColor="000000"
    imageNavStyle="CIRCLE"   
    dropShadowStrength="1"

    maxImageWidth="800"
    maxImageHeight="600"

    imageScaleMode="SCALE_UP"
    imageFrameStyle="SQUARE"
    imageCornerRadius="0"
    imageTransitionType="CROSS_FADE"
    showOverlay="ALWAYS"
    showImageNav="ALWAYS"
    thumbWidth="70"
    thumbHeight="60"
    thumbPadding="10"
    thumbFrameColor="000000"
    thumbFrameWidth="1"
    thumbVAlign="BOTTOM"
    imageTransitionTime="0.5"
    captionFontName="Arial"
    captionFontSize="12"
    watermarkURL="img/watermark.png"
    watermarkPadding="0"
    watermarkVAlign="CENTER"
    watermarkHAlign="CENTER"
    showOpenButton="FALSE"
>
<image imageURL="image.php?path=/529/something.jpg" thumbURL="" linkURL="" linkTarget="" >
    <caption>something here too</caption>   
</image>
</simpleviewergallery>


Don't ask for link to my files and example, this is a new solution that doesn't yet exist and got the same security level as a bank.

Thanks to anwser quickly cause this is my last issue within my application and need to go into production by next week.


Regards,
Jonathan Fournier

Last edited by jaunefluo (2009-12-23 14:47:10)

Re: Trouble behind IE, SSL and PHP to show images...

I just Find out the ISSUE :

After a long time or search in google with keyword : php https xml flash internet explorer

I've found this great post :
http://www.blog.lessrain.com/flash-load … est-suite/

So the problem is really with IE, not flash.
http://support.microsoft.com/default.as … -us;272359

Re: Trouble behind IE, SSL and PHP to show images...

thanks for posting the solution.

Felix Turner
SimpleViewer Support Team.