Jump to content


Regarding PHP echo or print command

  • Please log in to reply
1 reply to this topic

#1 anonpiss

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 April 2006 - 10:44 AM

I am trying to integrate Linkman (Link Exchange script) into my wordpress.
Currently this is the structure of my Wordpress
[a href=\"http://www.website.com/blog/\" target=\"_blank\"]http://www.website.com/blog/[/a]

And this is the structure of my linkman
[a href=\"http://www.website.com/linkman/\" target=\"_blank\"]http://www.website.com/linkman/[/a]

I want [a href=\"http://www.website.com/blog/wp-content/themes/kubrick/page.php\" target=\"_blank\"]http://www.website.com/blog/wp-content/the...ubrick/page.php[/a] to echo/print out a text file from [a href=\"http://www.website.com/linkman/linkinfo.txt\" target=\"_blank\"]http://www.website.com/linkman/linkinfo.txt[/a]

I think this should be the original php file taken from linkman folder that echo/print out the linkinfo.txt
require "settings.php";

$lines = array ();

echo "<p class=\"linkman\">";

foreach ($lines as $thisline)
    if (!empty($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.

#2 anonpiss

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 April 2006 - 12:24 AM

Anyone? :(

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users