how to fix this error - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > PHP » how to fix this error


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 10-06-2006   #1 (permalink)
tychicus
Senior Member
 
tychicus's Avatar
 
Join Date: Aug 2006
Age: 29
Posts: 166
Default how to fix this error

when i try to install the script, the error message shown..
Parse error: syntax error, unexpected '=' in /home/xxxxx/public_html/xxxxxxx/xxxxxx.php on line 26

and this is the line 26:
$passwordretrievalsubject="$bannerexchangename - password retrieval";
tychicus is offline   Reply With Quote


Old 10-06-2006   #2 (permalink)
StarLab
Forum Management
 
StarLab's Avatar
 
Join Date: Jul 2006
Location: Ontario, Canada
Age: 45
Posts: 1,464
Send a message via ICQ to StarLab Send a message via MSN to StarLab
Default Re: how to fix this error

That error is usually as a result of a missing curly bracket or quote. Check previous lines, and that you have placed your { }'s correctly.

I also came across similar errors when I forgot a ";" at the end of a line.

Hope that helps.
__________________
Larry
[DarkStar Retro Project] - A world wide search for ultra-rare software.

"Writing is the most fun you can have by yourself!" --Terry Pratchett
----
Gorgeous On Life - The world from a Cat's point of view!
StarLab is offline   Reply With Quote

Old 10-06-2006   #3 (permalink)
tychicus
Senior Member
 
tychicus's Avatar
 
Join Date: Aug 2006
Age: 29
Posts: 166
Default Re: how to fix this error

but i found no error in there? what to do then?
tychicus is offline   Reply With Quote

Old 10-06-2006   #4 (permalink)
mozza
Senior Member
 
mozza's Avatar
 
Join Date: Jul 2006
Age: 23
Posts: 238
Default Re: how to fix this error

maybe you try posting the previous 10 lines so that we can help to find the error?
__________________
Feat!
Precharge Projectnet
mozza is offline   Reply With Quote

Old 10-07-2006   #5 (permalink)
tychicus
Senior Member
 
tychicus's Avatar
 
Join Date: Aug 2006
Age: 29
Posts: 166
Default Re: how to fix this error

Quote:
<?

// Be sure when you edit this file that you DO NOT delete the quotation marks or remove any code. Also, do not use quotations in the variables or the site will not work.


$dbhost="localhost"; // probably localhost
$dbname="xxxxxxxx"; // database name
$dbuser="xxxxxxxxx"; // database username
$dbpassword="xxxxxxx"; // database password
$ratiohigh=2; // banner views
$ratiolow=1; // credits given to the user for the above banner views
$referral_credits=100; //banner impressions given to a referral signup
$baseurl="http://www.xxxxxx.com/banner/";
$bannerexchangename="Banner Exchange Division";
$namefrom="Banner Exchange Division";
$emailfrom="info@xxxxxxxx.com";
$admin_password = "xxxxxx"; //this is the password to your main banner site banners



////////////////////////////////////////
// End Site Config //
////////////////////////////////////////


$passwordretrievalsubject="$bannerexchangename - password retrieval";
$passwordretrievalbody="Hi _username_,

As requested, your password for the $bannerexchangename is _password_

Thanks
$bannerexchangename team.";


$welcomeemailsubject="Welcome to $bannerexchangename!";
$welcomeemailbody="Hi _username_,

Welcome to the $bannerexchangename, you can log in to your account at $baseurl"."login.php - your username is '_username_' and your password is '_password_'. Please click the following link to activate your account - you won't be able to log in until you have followed this link:

$baseurl"."authorise.php?username=_username_&rand= _rand_

You can start earning banner views now by adding the following code to your web pages

<!--begin $bannerexchangename code -->
<iframe src=$baseurl"."display.php?id=_id_ frameborder=0 vspace=0 hspace=0 width=468 height=78 marginwidth=0 marginheight=0 scrolling=no></iframe>
<!-- end $bannerexchangename code -->

Please note though, until you have logged into the system via the URL above, added a banner and url to your account and it has been reviewed by an admin, it won't be displayed on other member sites.

Thanks for joining!
$bannerexchangename staff.";



////////////////////////////////////////
//Don't edit anything below this point//
////////////////////////////////////////
function totalviews()
{
global $dbhost;
global $dbname;
global $dbuser;
global $dbpassword;
$link = mysql_connect($dbhost, $dbuser, $dbpassword)
or die("Could not connect: " . mysql_error());
mysql_select_db($dbname);
$sSQL="select n_Value from t_Stats where s_Name=\"totalviews\"";
$results=mysql_query($sSQL);
list($totalviews)=mysql_fetch_row($results);
echo $totalviews;
}

function stripjunk($sourcestring)
{
$sourcestring=str_replace("\"","",$sourcestring);
$sourcestring=str_replace("<","",$sourcestring);
$sourcestring=str_replace(">","",$sourcestring);
return($sourcestring);
}
?>
here is all.....
tychicus is offline   Reply With Quote

Old 10-07-2006   #6 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 26
Posts: 755
Default Re: how to fix this error

Is this PHP?

If so try

PHP Code:
$passwordretrievalsubject$bannerexchangename " - password retrieval"
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 10-07-2006   #7 (permalink)
tychicus
Senior Member
 
tychicus's Avatar
 
Join Date: Aug 2006
Age: 29
Posts: 166
Default Re: how to fix this error

i tired it...but the error still there...getting crazy with it..
tychicus is offline   Reply With Quote

Old 10-07-2006   #8 (permalink)
StarLab
Forum Management
 
StarLab's Avatar
 
Join Date: Jul 2006
Location: Ontario, Canada
Age: 45
Posts: 1,464
Send a message via ICQ to StarLab Send a message via MSN to StarLab
Default Re: how to fix this error

Not sure if this will help, but shouldn't the first line be:

<?php
__________________
Larry
[DarkStar Retro Project] - A world wide search for ultra-rare software.

"Writing is the most fun you can have by yourself!" --Terry Pratchett
----
Gorgeous On Life - The world from a Cat's point of view!
StarLab is offline   Reply With Quote

Old 10-07-2006   #9 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 26
Posts: 755
Default Re: how to fix this error

that usually doesn't make a difference, but it is better coding to use <?php
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 10-07-2006   #10 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 26
Posts: 755
Default Re: how to fix this error

Quote:
Originally Posted by tychicus View Post
i tired it...but the error still there...getting crazy with it..
Why don't you ask the creator of the script?
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What HTTP error is generated when there is an error in an ASP page? agaba175 ASP 0 08-05-2006 08:25 PM


footer left
All times are GMT. The time now is 11:32 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Loan | Free Ringtone | Loans | Electricity Suppliers | Bad Credit Mortgages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49