var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
External Images through SSL
For the site I'm working on I need to put at the footer an image that ranks the current site. This image is not on the server, and it changes dynamicaly at random times (external call to the image). I need to get it working on my SSL pages, but I don't want the browser to ask the user if they "Want to Display InSecure items?". Anyone know a way around this (I need to keep the external link if possible cause it randomly changes).
To keep it secure you will need to call a secure page. The external link should also have an SSL cert.
RadicalV.com High Velocity Hosting Services - Since 1999
Hsphere Linux & Windows Hosting ~ Automated Reseller Plans ~
I had this problem a little while ago and managed to get around it by writing a Perl script which ran on my SSL pages but pulled the image remotely.
I used the Image::Grab module to do this (it requires a couple of other modules to work - details are on the pod page).
The code for the script is a basic as it gets:
Then just make the script accessible via your https and call it as the image link, e.g.
$pic = new Image::Grab;
$image = "http://url.of.insecure/image.gif";
print "Content-type: image/gif\n\n";
and Bob's your uncle. As far as the browser is concerned the image will be secure and you won't get any warning messages.
I'm not quite as versed in PHP but I would have thought it was possible to do something along the same lines if that's more your thing.
You can just use apache's mod_rewrite. Throw this into a .htaccess.