parse error

Problems installing LinkMan?
Post Reply
rach2306
Posts: 3
Joined: Sun Jan 27, 2008 12:50 am

parse error

Post by rach2306 »

Script URL:http://www.tipsforyou.co.uk/add_url
Version of script:http://www.tipsforyou.co.uk/phpinfo.zip
Hosting company:gold host live
URL of phpinfo.php:http://www.tipsforyou.co.uk/phpinfo.zip
URL of session_test.php: http://www.tipsforyou.co.uk/session_test.zip
What terms did you try when SEARCHING for a solution:parse error

Write your message below:

Hope I have put all the info in here you need.

I am having problems with getting link manager to work. I have uploaded it changed the setting on linkinfo to 666 updated the setting filewith my info and I get the following error

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/printing/public_html/tipsforyou.co.uk/add_url/settings.php on line 19


I have checked it against the original and I can't see that I have changed anything other than what I was supposed to do. Iunderstand, I think, that this error means a problem in the code i.e something missing.

This is my code

<?php
// SETUP YOUR LINK MANAGER
// Detailed information found in the readme.htm file
// File last modified: April 21 2006 (LinkMan v. 1.03)

// Password for admin area
$settings['apass']='****************';

// Your website URL
$settings['site_url']='http://www.tipsforyou.co.uk';

/* Prevent automated submissions (recommended YES)? 1 = YES, 0 = NO */
$settings['autosubmit']=1;

/* Checksum - just type some digits and chars. Used to help prevent SPAM */
$settings['filter_sum']=jtl7873';

// Send you an e-mail everytime someone adds a link? 1=YES, 0=NO
$settings['notify']=1;

// Admin e-mail
$settings['admin_email']='*****************@btinternet.com';

// Maximum number of links
$settings['max_links']=100;

// Use "clean" URLs or redirects? 1=clean, 0=redirects
$settings['clean']=1;

// Where to add new links? 0 = top of list, 1 = end of list
$settings['add_to']=1;

// Name of the file where link URLs and other info is stored
$settings['linkfile']='add_url';



/*******************
* DO NOT EDIT BELOW
*******************/

$settings['verzija']='1.03';
$settings['delimiter']="\t";

function pj_input($in,$error=0) {
$in = trim($in);
if (strlen($in))
{
$in = htmlspecialchars($in);
}
elseif ($error)
{
problem($error);
}
return stripslashes($in);
}

function pj_isNumber($in,$error=0) {
$in = trim($in);
if (preg_match("/\D/",$in) || $in=='')
{
if ($error)
{
problem($error);
}
else
{
return '0';
}
}
return $in;
}
?>

Can someone help please

Thanks
Rachel
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Rachel,

You have this:
$settings['filter_sum']=jtl7873';

It should be:
$settings['filter_sum']='jtl7873';
You are missing the ' after =

Greetings,
Henrie
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Like Henrie said.

By the way, it's not a wise idea to post your admin password on a forum, I deleted it for you.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
rach2306
Posts: 3
Joined: Sun Jan 27, 2008 12:50 am

re password

Post by rach2306 »

Its ok I changed the password before I posted it just wanted to give everyone an idea of what i had done so that isnt my real password
Rachel
rach2306
Posts: 3
Joined: Sun Jan 27, 2008 12:50 am

what now

Post by rach2306 »

Thanks that works now. That lets me into the admin section but what file do i need to link to so that someone can add there own link and then which fine will show the directory?

Thanks a lot for your help
Rachel
Post Reply