|
Posted by Jimmy Clay on 11/27/96 11:28
I've made the suggested changes and the error I get is:
Parse error: parse error, unexpected T_STRING in
/home/songc1/public_html/guestmap/guestmap_place.php on line 27
In the file guestmap_place.php, I have the lines:
include('badwords.php')
check($message)
Line 27 is ' check($message) '
The file ' badwords.php ' now reads:
<?php
//* badwords.php */
function check($message) /* Establishes the function check */
{
global $message; /* Gets All Variables */
//To Add New Words, Just Copy One Line From Below And Paste It Below The
Third Line.
//Just Replace the first word in quotes with the word you would like,
//and the second word in quotes to what you would like to change it to.//
$message = str_replace("badword1","**",$message); /* Replaces the word "hey"
into "****" */
$message = str_replace("badword2","**",$message);
$message = str_replace("badword3","**",$message);
echo $message;
}
?>
--
Jimmy Clay
Read free ebooks !!!!!
Go to my web page:
www.songofthecoyote.com/
"Samuel" <lets.monroe@gmail.com> wrote in message
news:1128523099.532719.303100@g47g2000cwa.googlegroups.com...
> If you're calling it as
>
> check($message)
>
> you need to change the declaration of the function to
>
> function check ($message)
> {
> ...
> }
>
> and remove the "return check()" line from the separate page where you
> have the function. Also, it would help if you told us exactly what
> errors you are getting.
>
> Greetings.
>
[Back to original message]
|