【发布时间】:2013-06-13 09:22:35
【问题描述】:
从赞助商那里得到代码,它是用 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>
有什么解决办法吗?
【问题讨论】:
-
嗯……呃……是的。 PHP 不是 Perl。你不能混合和匹配它们。
-
在 Perl 中包含 PHP - stackoverflow.com/questions/455369/…