Current location: Hot Scripts Forums » Programming Languages » PHP » weird parse error. cant find a solution


weird parse error. cant find a solution

Reply
  #1 (permalink)  
Old 11-03-05, 11:22 AM
fridyrls fridyrls is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Post weird parse error. cant find a solution

ive looked around on the internet (and these forums) for a day or so, and i cant find any answer :\

heres the error i get


Parse error: parse error, unexpected ')' in /home/yvonne1/public_html/bestof/bosend.php on line 125


and the code around those lines areee


// lets begin writing the results
// Write $somecontent to our opened file.
if (fwrite($handle, $somecontent,) === FALSE) {
echo "Cannot write to file ($filename)";
exit;
}

// Write $somecontent to our opened file.
if (fwrite($handle2, $somecontent2) === FALSE) {
echo "Cannot write to file ($filename)";
exit;
}



line 125 is if (fwrite($handle, $somecontent,) === FALSE) {



more info:
the script is for my yearbook class
you know the "best of" pages, like best hair, best eyes, etc.
people are going to go online and vote. the rest of the script is done. but i just get that error :\


thanks
Reply With Quote
  #2 (permalink)  
Old 11-03-05, 11:26 AM
fridyrls fridyrls is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
re

ok i got it.

i had an extra comma after the command


admins, close and/or delete
Reply With Quote
Reply

Bookmarks


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

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

Forum Jump


All times are GMT -5. The time now is 06:18 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.