PHP error for comment script
03-15-2009, 06:57 PM
|
PHP error for comment script
|
Posts: 258
|
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
|
|
|
|
03-15-2009, 07:07 PM
|
Re: PHP error for comment script
|
Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
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.
|
|
|
|
03-15-2009, 07:21 PM
|
Re: PHP error for comment script
|
Posts: 258
|
Thanks. That fixed it.
Pretty dumb mistake on my part. It's usually right there in front of you.
|
|
|
|
03-15-2009, 08:14 PM
|
Re: PHP error for comment script
|
Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Quote:
Originally Posted by konetch
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.
|
|
|
|
|
« Reply to PHP error for comment script
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|