TCH-Tim Posted March 4, 2005 Posted March 4, 2005 I defined "base href" in my header. On my computer, it would be http://localhost and on my live site it would be http://www.example.com. After I'm done fiddling with my header include on my local computer, I have to remember to change that tag before I upload to my live site. Is there some kind of PHP script or command that can automatically define that tag for me somehow so I don't have to remember to change it every time? Or should I just stop being lazy? Quote
TCH-Don Posted March 5, 2005 Posted March 5, 2005 The only thing I can think of is to include a config file in the header. Have two config files, one local and one on your site. with the base href in the config files as needed. Quote
borfast Posted March 5, 2005 Posted March 5, 2005 I agree with Don. You can define the base href in a config.php file and include it in every file. Quote
TCH-Tim Posted March 5, 2005 Author Posted March 5, 2005 You can define the base href in a config.php file and include it in every file. Yah, I have a config.php. Just looking to automate that as well so when I make changes to it I don't forget. No big deal, I'll just suck it up and change it myself. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.