safeInclude Plugin issues
-
I have installed the safeInclude pluging that is supposed to allow you to add static information to your posts or pages by inserting {{filename}} into them. where “filename” is the name of the .php, .htm, .html file you are using. It installed ok but the script I’m trying to run won’t display correctly. The script I’m using requires the use of other files and I’m just wondering if for some reason the plug-in doesn’t allow the use of other files.
Example:
…
require ‘settings.php’;$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 ‘‘.$title.’ – ‘.$description.'<br>’;
}
}
…
It is supposed to display an arrayed list of the links that others have added to my site but for some reason nothing shows up on the page. But if I run this script without using a wordpress page it works just fine.
Any help would be muchly appreciated.
Thanks
- The topic ‘safeInclude Plugin issues’ is closed to new replies.