I am trying to add linxad php code to the sidebar of my phpLD directory here
Mortgage Corner | World Wide Mortgage Directory
The code looks like this
I put the code on the right sidebar of my directory above (under "Partner Sites") but the code checker of my linxad account couldn't detect it.PHP Code:<?php
print @file_get_contents('http://api.linxad.com/links.php?website_key=TKKgPdUAecJTWbCy&request_uri='.$_SERVER['REQUEST_URI'].'&referer='.$_SERVER['HTTP_REFERER'].'&user_agent='.$_SERVER['HTTP_USER_AGENT']);
?>
I looked for similar problems in the forum and found this thread
Adding txtlinkads php code to index page only ? - PHP Link Directory Forum
I followed the instructions there and what I did was trying to put the tags {php} and {/php} around the code but it still didn't work.
Also I put the {literal}{/literal} tags around it (because I am using a smarty template as it is with the problem in the thread above) so it looks like this:
...and still didn't work.PHP Code:{literal}
{php}
<?php
print @file_get_contents('http://api.linxad.com/links.php?website_key=TKKgPdUAecJTWbCy&request_uri='.$_SERVER['REQUEST_URI'].'&referer='.$_SERVER['HTTP_REFERER'].'&user_agent='.$_SERVER['HTTP_USER_AGENT']);
?>
{/php}
{/literal}
What am I doing wrong?


LinkBack URL
About LinkBacks

Reply With Quote

Bookmarks