【发布时间】:2015-11-11 09:00:29
【问题描述】:
我正在将录音室网站从基于 Windows 的服务器迁移到 linux 的服务器。除了使用 ASP 函数更新新版本的一页之外,它都是 html 和 php。 我一直在尝试使用“echo”自己转换它,但我什至无法接近工作代码。 这里是:
<%
Function PrintRecord(strImage, strAutore, strTitolo, strInfo, strCredits)
dim strRet
strRet = strRet + " <td valign=""top"">"
strRet = strRet + " <div style=""margin-left: 20px""> "
strRet = strRet + " <img src=""pictures_works/" + strImage + """ height=""80"" width=""80"" border=""1"">"
strRet = strRet +" </td>"
strRet = strRet + " <td width=""170px"" valign=""top"">"
strRet = strRet + " <font class=""TestoPiccoloNo"">"
strRet = strRet + " <b>" + strAutore + "</b><br>"
strRet = strRet + " " + strTitolo + "<br>"
strRet = strRet + " " + strInfo + "<br>"
strRet = strRet + "<i>- " + strCredits + " </i>"
strRet = strRet + " </font>"
strRet = strRet + " </div> "
strRet = strRet + " </td>"
PrintRecord = strRet
End Function
%>
这是我用来更新的代码:
<%=PrintRecord("somepic.jpg","someband","somerecord","somelabel","whodidwhat")%>
任何帮助将不胜感激。 谢谢!
【问题讨论】:
-
你让我穿越到了 10 年前。
-
这正是网站创建的时间!
标签: php asp.net code-conversion