是否可以将Duble包含在JavaScript和PHP中

is it possible to make duble include in javascript and php?

本文关键字:JavaScript PHP 包含 Duble 是否      更新时间:2023-09-26

我使用以下代码来检查用户是否喜欢我的Facebook页面?

   <style>xxxxxxxxxxxxxxxxx</style>
    <script src="http://www.google.com/jsapi"></script><script>google.load("jquery", "1");</script> 
    <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <script type="text/javascript">
        Username="gagsallday", 
        Title="Join Our Facebook!", 
        Skin="01", 
        Time="30", 
        Wait="0", 
        Lang="en"
    </script>
    <script type="text/javascript" src="likeboxfbfanpro.js"></script>
    <script type="text/javascript">$(document).ready(function(){$().popupbox({ closeable: false });});</script>
<?
echo'<Center><Font Face="Tahoma"><Font size="10">Your Content Here!';

最后一段代码是我应该将页面内容放在其中的位置:

 <?
    echo'<Center><Font Face="Tahoma"><Font size="10">Your Content Here!';

我的问题是如何将此代码添加到我的页面? 就像这样? 它不起作用,因为我无法包含文件,其中已经具有包含功能? 我想要的是这样的东西,但我该怎么做?

<?php include('the-ablve-code-goes-here.php');?>
<html>
<head>
</head>
<body>
stuff goes here...
</body>
</html>

就这样?

是的。

它不起作用,因为我无法包含已经具有包含功能的文件?

不。如果它不起作用,那不是原因。也许您没有打开短标签。不要使用短标记。