StatFox
01-29-2003, 08:17 PM
PHP with ASP Code
Hello everybody... I have a question that may seem pretty simple to the folks in here. I just can't figure it out.
Question:
My website uses .asp code to rotate banners on all of the pages. The .asp code doesn't function inside the .php page.
----------------------------------
Here is the general code we use for the banners...
If Request.ServerVariables("REMOTE_ADDR")="127.0.0.1" Or InStr(Request.ServerVariables("REMOTE_ADDR"),"localhost") Then
strAdRotSchedFile=PathToRoot & "/ads/main/topbanner.txt"
End If
Set adRotate=Server.CreateObject("MSWC.AdRotator")
strAdString=adRotate.GetAdvertisement(strAdRotSche dFile)
Set adRotate=nothing
Response.Write strAdString
%>
----------------------------------
Does anybody know how to make the .asp work in the .php environment? Thanks for your help! And let me know if there are any questions.
Hello everybody... I have a question that may seem pretty simple to the folks in here. I just can't figure it out.
Question:
My website uses .asp code to rotate banners on all of the pages. The .asp code doesn't function inside the .php page.
----------------------------------
Here is the general code we use for the banners...
If Request.ServerVariables("REMOTE_ADDR")="127.0.0.1" Or InStr(Request.ServerVariables("REMOTE_ADDR"),"localhost") Then
strAdRotSchedFile=PathToRoot & "/ads/main/topbanner.txt"
End If
Set adRotate=Server.CreateObject("MSWC.AdRotator")
strAdString=adRotate.GetAdvertisement(strAdRotSche dFile)
Set adRotate=nothing
Response.Write strAdString
%>
----------------------------------
Does anybody know how to make the .asp work in the .php environment? Thanks for your help! And let me know if there are any questions.