从赞助商那里得到代码并且它是在PHP中,遗憾的是我的网站是用Perl编写的并且有html模板,当我尝试粘贴代码脚本时就不起作用了......我真的很喜欢编码也许你们伙计们可以帮我?这是代码:
<?php
// Replace the download URL.
$download_url = "<TMPL_VAR direct_link>";
// Replace the software name to appear in the installer.
$software_name = "PUZZLE";
// URL to a logo image. Must be configured through your affiliate manager.(Optional)
$logo_image = "http://cdn.airdlrstatic.com/graphics/affiliate/yourname/image.png";
// URL to a product image. Please consult your affiliate manager for details.
$product_image = "";
// Sub ID (Optional)
$sub_id = "";
// Software Bundle ID for tracking.
$bundle = "c8d494949";
?>
<a href='<?php include '/download/download.php'; ?>'>Click Here!</a>
对此有何解决方案?
答案 0 :(得分:3)
将PHP
代码放入PHP
文件中,然后在您希望显示的页面中添加iframe
。
假设您调用了您的php文件myfile.php
,并在您希望显示的网页中添加以下代码:
<iframe src="myfile.php" width="300" height="400" frameBorder="0"></iframe>
显然还有其他(更好)方法,但需要一些编码技巧。这是在没有任何复杂编码的情况下实现它的最简单方法。