Jump to content

Regarding PHP echo or print command


anonpiss

Recommended Posts

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
[code]<?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";
    }
}
?>[/code]

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.