Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP error for comment script
Old 03-15-2009, 06:57 PM PHP error for comment script
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
Okay. I'm not very familiar with PHP so please excuse the dumb questions.
I have a small, simple script that I use to run a small message board. It can be found at http://www.konetchreport.com/mforum/mboard.php

I have a bad words file that keeps users from submitting inapproriate content. When I post a new thread an error comes up...

"Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /usr/local/httpd/www.konetchreport.com/mforum/badwords/en.php on line 122"

I'm not sure what that means. You can see the file '.../badwords/en.php' below.

Code:
<?php
# Bad words file
# Language: ENGLISH
# Version: 1.0
# File name: en.php
# 9th September 2004 by Klemen Stirn (info@phpjunkyard.com)
# http://www.PHPJunkYard.com
$settings['badwords'] = array (
/* All bad words should be in this format:
 "BADWORD" => "REPLACEMENT",
You can add as many bad words as you wish.
INSERT NEW BAD WORDS BELOW THIS LINE */
 
/* DO NOT EDIT BELOW */
 "!" => "a*******",
 "!" => "a*******",
 "!" => "a*******",
 " !" => " a** ",
 "!" => "a**",
 "!" => "a**",
 "!" => "a** f*****",
 "!" => "a** f*****",
 "!" => "a** f*****",
 "!" => "a******",
 "!" => "a******",
 "!" => "a******",
 "!" => "a******",
 "!" => "a******",
 "!" => "b******",
 "!" => "b******",
 "!" => "b******",
 "!" => "b****",
 "!" => "b****",
 "!" => "b****",
 "!" => "b******",
 "!" => "b******",
 "!" => "b******",
 "!" => "b*******",
 "!" => "b*******",
 "!" => "b*******",
 "!" => "b*********",
 "!" => "b*********",
 "!" => "b*********",
 "!" => "b*********",
 "!" => "b*********",
 "!" => "b***",
 "!" => "b***",
 "!" => "c***",
 "!" => "c***",
 "!" => "c***",
 " ! " => " c*** ",
 "!" => "c***",
 "!" => "c***",
 "!" => "c*********",
 "!" => "c*********",
 "!" => "c*********",
 "!" => "c***",
 "!" => "c***",
 "!" => "c***",
 "!" => "c***",
 "!" => "c***",
 "!" => "c***",
 "!" => "d***",
 "!" => "d***",
 "!" => "f**",
 "f!" => "f**",
 "!" => "f**",
 "!" => "f***",
 "!" => "f***",
 "!" => "f***",
 "!" => "f******",
 "f!" => "f******",
 "!" => "f******",
 "!" => "f***",
 "!" => "f***",
 "!" => "f***",
 "!" => "h******",
 "!" => "h******",
 "!" => "h******",
 "!" => "j*** a**",
 "!" => "j*** a**",
 "!" => "j*** a**",
 "!" => "j*** a**",
 "!" => "m***********",
 "!" => "m***********",
 "!" => "m***********",
 "!" => "m***********",
 "!" => "m***********",
 "!" => "my c***",
 "!" => "my d***",
 "!" => "p***",
 "!" => "p***",
 "!" => "p***",
 "!" => "p***",
 "!" => "p***",
 "!" => "p***",
 "!" => "s***",
 "!" => "s***",
 "!" => "s***",
 "!" => "s***",
 "!" => "s***",
 "!" => "s***",
 "!" => "s** ** *",
 "!" => "s** ** *",
 "!" => "s** ** *",
 "!" => "s***",
 "!" => "s***",
 "!" => "s***",
 "!" => "w****",
 "!" => "w****",
 "!" => "w****",
 "!" => "your c***",
 "!" => "your d***",
 "!" => "s***ty",
 "!" => "s***ty",
 "!" => "s***ty"
 "!" => "s***ty",
 "!" => "s***ty",
 "!" => "s***ty",
);
 
?>
You replace "!" marks with bad words. If there is something wrong with the file then please tell me.

Thanks.

________________________
http://www.konetchreport.com
konetch is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-15-2009, 07:07 PM Re: PHP error for comment script
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
4th lines of the words from the end, there is a missing coma.
Code:
 "!" => "s***ty",
 "!" => "s***ty",
 "!" => "s***ty"   <-- here
 "!" => "s***ty",
 "!" => "s***ty",
 "!" => "s***ty",
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 03-15-2009, 07:21 PM Re: PHP error for comment script
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
Thanks. That fixed it.

Pretty dumb mistake on my part. It's usually right there in front of you.
konetch is offline
Reply With Quote
View Public Profile
 
Old 03-15-2009, 08:14 PM Re: PHP error for comment script
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
Originally Posted by konetch View Post
Thanks. That fixed it.

Pretty dumb mistake on my part. It's usually right there in front of you.
Yeah, typical.
I know...
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to PHP error for comment script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31776 seconds with 12 queries