I'm new to PHP but, I need to move my ASP pages to PHP, what do I need to do and what code, and where do I insert the code so PHP will read my ASP??????????Help ASAP.
Sample:<html>
<head>
<meta NAME="GENERATOR" CONTENT="Microsoft FrontPage 3.0">
<title>ABMC Home Page</title>
</head>
<body BACKGROUND="back.gif">
<%
Dim sPath, filesys, count, getValue, update, twohrs
sPath = Request.ServerVariables("Path_Translated")
sPath = Left(sPath,InStrRev(sPath,"\")) & "counter.txt"
Set filesys = CreateObject("Scripting.FileSystemObject")
Set getValue = filesys.OpenTextFile(sPath,1,0)
' get the current value
count = getValue.ReadLine
If Request.Cookies("website_name")("recentvisitor") <> "yes" Then
' increment by 1 before displaying, 'cos they're a newbie
count = Int(count) + 1
Set update = filesys.CreateTextFile(sPath)
' put new value in text file
update.WriteLine(count)
update.Close
' give them a cookie to make sure it doesn't count them more than once
Response.Cookies("website_name")("recentvisitor") = "yes"
' make it expire in 2 hours' time
twohrs = DateAdd("h", 2, Now)
Response.Cookies("website_name").Expires = twohrs
End If
' close file
getValue.Close
%>
<table width="780" align="center">
<tr>
<td width="195" valign="top"><p align="center"><a HREF="searchw.htm"><img SRC="wwi.jpg"
WIDTH="108" HEIGHT="42" ALIGN="center" BORDER="0" hspace="5" vspace="5"
NATURALSIZEFLAG="0"></a></td>
<td width="195" valign="top"><p align="center"><a HREF="searchww.htm"><img SRC="wwii.jpg"
WIDTH="108" HEIGHT="42" ALIGN="center" BORDER="0" hspace="5" vspace="5"
NATURALSIZEFLAG="0"></a></td>
<td width="195" valign="top"><p align="center"><a HREF="search.htm"><img SRC="kor.jpg"
WIDTH="108" HEIGHT="42" ALIGN="center" BORDER="0" hspace="5" vspace="5"
NATURALSIZEFLAG="0"></a></td>
<td width="195" valign="top"><p align="center"><a HREF="abmc7.htm"><img SRC="vn.jpg"
WIDTH="108" HEIGHT="42" ALIGN="center" BORDER="0" hspace="5" vspace="5"
NATURALSIZEFLAG="0"></a></td>
</tr>
<tr>
<td align="center"><font COLOR="blue"><b>World War I Listing</b></font></td>
<td align="center"><font COLOR="blue"><b>World War II Listing</b></font></td>
<td align="center"><font COLOR="blue"><b>Korea War Listing</b></font></td>
<td align="center"><font COLOR="blue"><b>Vietnam War Plaque</b></font></td>
</tr>
</table>
<table width="780" align="center">
<tr>
<td colspan="2" width="780950"><img SRC="abmcban.jpg"
ALT="American Battle Monuments Banner." WIDTH="780" HEIGHT="90" ALIGN="right" HSPACE="0"
NATURALSIZEFLAG="0"></td>
</tr>
<tr>
<td width="200" valign="top"><strong><a HREF="abmc1.htm"><img SRC="abmc1.jpg" WIDTH="195"
HEIGHT="22" ALIGN="right" HSPACE="0" NATURALSIZEFLAG="0"></a></strong><br>
<br>
<strong><a HREF="abmc2.htm"><img SRC="abmc2.jpg" WIDTH="195" HEIGHT="22" ALIGN="right"
HSPACE="0" NATURALSIZEFLAG="0"></a><br>
<br>
<a HREF="abmc3.htm"><img SRC="abmc3.jpg" WIDTH="195" HEIGHT="22" ALIGN="right" HSPACE="0"
NATURALSIZEFLAG="0"></a><br>
<br>
<a HREF="abmc4.htm"><img SRC="abmc4.jpg" WIDTH="195" HEIGHT="22" ALIGN="right" HSPACE="0"
NATURALSIZEFLAG="0"></a><br>
<br>
<a HREF="abmc5.htm"><img SRC="abmc5t.jpg" WIDTH="195" HEIGHT="22" ALIGN="right" HSPACE="0"
NATURALSIZEFLAG="0"></a><br>
<br>
<a HREF="abmc5e.htm"><img SRC="abmc5e.jpg" WIDTH="195" HEIGHT="22" ALIGN="right"
HSPACE="0" NATURALSIZEFLAG="0"></a><br>
<br>
<a HREF="http://www.wwiimemorial.com/"><img SRC="wwiit.jpg" WIDTH="195" HEIGHT="22"
ALIGN="right" HSPACE="0" NATURALSIZEFLAG="0"></a><br>
<br>
<a HREF="ar02-c1.htm"><img SRC="ar.jpg" WIDTH="195" HEIGHT="22" ALIGN="right" HSPACE="0"
NATURALSIZEFLAG="0"></a></strong></td>
<td width="580" valign="top"><img SRC="no1.jpg"
ALT="Memorial at the Normandy American Cemetery." WIDTH="580" HEIGHT="290" ALIGN="left"
HSPACE="0" NATURALSIZEFLAG="0"></td>
</tr>
<tr>
<td width="780" colspan="2"><h4> Welcome to the American
Battle Monuments Commission's web pages. The Commission was established by Congress
at the request of General John J. Pershing to honor the accomplishments of the American
Armed Forces where they have served since World War I. You are our <%=Count%> visitor.</h4>
</td>
</tr>
</table>
<table WIDTH="780" BORDER="0" CELLSPACING="2" CELLPADDING="0" HEIGHT="47">
<tr>
<td WIDTH="300"></td>
<td WIDTH="480"><a HREF="abmcp.htm"><b>Please read our Privacy Statement.</b></a><br>
<a HREF="fair.htm"><b>Our Federal Activities Inventory Reform (FAIR) Act Statement</b></a><br>
<a HREF="fia.htm"><b>Freedom of Information Act Guidelines</b></a><br>
<br>
<a HREF="help.htm"><b>Help</b></a></td>
</tr>
</table>
</body>
</html>
😕 😕