I am trying to integrate Linkman (Link Exchange script) into my wordpress.
Currently this is the structure of my Wordpress
http://www.website.com/blog/
And this is the structure of my linkman
http://www.website.com/linkman/
I want http://www.website.com/blog/wp-content/themes/kubrick/page.phpto echo/print out a text file from http://www.website.com/linkman/linkinfo.txt
I think this should be the original php file taken from linkman folder that echo/print out the linkinfo.txt
<?php
require "settings.php";
require_once("header.txt");
$lines = array ();
$lines=file($settings['linkfile']);
echo "<p class=\"linkman\">";
foreach ($lines as $thisline)
{
$thisline=trim($thisline);
if (!empty($thisline)) {
list($name,$email,$title,$url,$recurl,$description)=explode($settings['delimiter'],$thisline);
if ($settings['clean'] != 1) {$url="go.php?url=".$url;}
echo "<a href=\"$url\" target=\"_new\" class=\"linkman\">$title</a> - $description<br>\n";
}
}
?>
Problem is, according to the structure of where the files is, I can't use the code above.
How should I modify them? I tried changing around but couldn't get it to work.
Would really appreciate any help... Thanks in advanced.