I would like to convert this script to PHP and re-use it on a new server.
The file was called "default.asp" so I need to have a new file called default.php or index.php.
The default.asp file contained this VBScript:
- Code: Select all
<%@ Language=VBScript %>
<% if instr(Request.ServerVariables("SERVER_NAME"), "domain-a.com") > 0 then%>
<!--#include virtual="d-a.asp"-->
<% elseif instr(Request.ServerVariables("SERVER_NAME"), "domain-b.com") > 0 then%>
<!--#include virtual="d-b.asp"-->
<% elseif instr(Request.ServerVariables("SERVER_NAME"), "domain-c.com") > 0 then%>
<!--#include virtual="d-c.asp"-->
<%end if%>
If someone could help me that would be great.
Thank you.

