The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
You can't have both asp and php code within one file.
|
#3
|
||||
|
||||
You could always use an iFrame to pull it off.
|
#4
|
|||
|
|||
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!
|
#5
|
|||
|
|||
Cant you dothe include with a javascript? IFRAME:
PHP Code:
|
#6
|
||||
|
||||
StatFox: google.com , always the fastest solution.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|