Determining http or https for files references
- 20 February, 2012 -
- PHP -
- Tags :
- 0 Comments
If you have a https site and pull http content you can and probably will get a warning.
http content on a https site will also yield a warning
Add this in place of http/https to solve all problems.
<?=(isset($_SERVER['HTTPS'])?"https://":"http://")?>