![]() |
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"),"loca lhost") 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. |
You can't have both asp and php code within one file.
|
You could always use an iFrame to pull it off. :)
|
I'm not familiar with the iFrame. Any place you can point me to get more info on that? Is it an easy process or complicated? Thank you!
|
Cant you dothe include with a javascript? IFRAME:
PHP Code:
|
StatFox: google.com , always the fastest solution.
|
All times are GMT. The time now is 08:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|