I am trying to modify an existing internal html file, which uses HTML 4.0 Transitional - not sure if more information is needed about my environment.
Right now several links point to the dev server, but when I move the file to prod, I want to update the server name in a single location instead of within each href value.
For example, a link points to \\dev_server\myfiles\myfile.txt. How do I set a constant at the top of the file with the server name that can be referred to as part of the href value?
Then instead of having to replace each instance of \\dev_server\myfiles\myfile.txt with \\prod_server\myfiles\myfile.txt, I could just use \\[server_instance]\myfiles\myfile.txt throughout and update the [server_instance] constant with the appropriate value.
As an alternative, PHP is also installed on the servers, but I don't know which version, I just know that there are some existing files that have php and html intermixed. I don't know very much php, but how could I php to set the value of a constant, and then use that constant within the HTML?
My skills are with database development and I'm very, very new to html and php.