Hi all. I have this code displaying an image within our cart software.
<img src="<?php echo $this->getSkinUrl('images/creditcard_logos.jpg') ?>" class="creditcard-image" alt="We accept all major credit cards." />
I am trying to figure out how to display an image located on another site, however I need it to be able to work in http and https modes. We are attempting to use another URL to display some of our images to help with page loading times and do not want to use a CDN.
Any help would be greatly appreciated.
How to Display an image on another site Using PHP???
Moderator: General Moderators
-
Danielc1234
- Forum Newbie
- Posts: 18
- Joined: Tue Jul 29, 2008 11:55 am
Re: How to Display an image on another site Using PHP???
Code: Select all
<img src="//example.com/path/to/image.jpg" class="creditcard-image" alt="We accept all major credit cards." />-
Danielc1234
- Forum Newbie
- Posts: 18
- Joined: Tue Jul 29, 2008 11:55 am
Re: How to Display an image on another site Using PHP???
Thanks! Does that mean that this code will work in http and https modes?