Let's see if I can remember/explain this...
In the past I had a Config file that looked like this...
// File Root
define('ROOT', ENVIRONMENT === 'development'
// Web Server Root
define('WEB_ROOT', ENVIRONMENT === 'development'
// Secure Web Server Root
define('SECURE_WEB_ROOT', ENVIRONMENT === 'development'
So a few months ago I finally learned how to create Virtual Hosts on my laptop so that I didn't need this silliness above?!
But one problem still exists...
As I recall, when someone goes to check out on my website, I was getting some error message complaining that a unencrypted image/file was being sent over the HTTPS connection.
To fix this, I did this...
<a href="<?php echo WEB_ROOT ?>index.php">
<img id="logo" src="<?php echo SECURE_WEB_ROOT ?>images/mylogo_200x50.png"
width="200" alt="My Logo" />
Is there some way that I can get rid of this code so I can totally eliminate my "Config" file? (Obviously I could hard-code in the HTTPS path, but I am wondering - as I re-factor my website - if maybe there is a better approach?!)