Hi Trung Luu
You said you have worked ADRotator in ASP. I want to know when u click on the Link on ur Ad, does goto the new page. If so, please give me the instructions in ASP. not PHP.
thanks
Prahlad. prhld@hotmail.com
Trung Luu wrote:
Hi,
I am using "MSWC.ADRotator" COM to display Ad banner in my page. I created the following codes in ASP, successfully:
<%
set Ad = server.CreateObject("MSWC.ADRotator")
Ad.Border = 0
Ad.Clickable = True
Ad.TargetFrame = "target=_new"
strHTML = Ad.GetAdvertisement("\homepage\adbanner\bancontrol.txt")
Response.Write (strHTML)
%>
It's work well. But when i converted above codes to PHP as follows:
<?php
$Ad = new COM("MSWC.ADRotator") or die("Cannot start MSWC");
$Ad->Border = 0;
$Ad->Clickable = True;
$Ad->TargetFrame = "target=_new";
$strHTML = $Ad->GetAdvertisement("\Homepage\Adbanner\bancontrol.txt");
echo $strHTML;
?>
It's not work well. I got a error message "Warning: Invoke() failed: Exception occurred. in D:\Homepage\index.php on line 29".
Are there wrong in my code? How to solve this problem? Are there any ways to resolve it?
Thanks in advance,
Trung Luu