![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveBasic question about incuding files and funcitons
From: Jimmy Clay <jimclay@netzero.net>
Date: Wed Oct 05 2005 - 12:41:20 CEST
I have a very basic question about how to include files to be used by
File name is badwords.php
<?php
function check( ) /* Establishes the function check */
global $message; /* Gets All Variables */
//To Add New Words, Just Copy One Line From Below And Paste It Below The
$message = str_replace("bad word1","**",$message); /* Replaces the word
echo $message;
}
return check(); //* Returns the function check() */
?>
I would like to keep this as a separate file and include it into the main
include('badwords.php')
I've tried a lot of different things to get this to work but I always get
So what should I do to get this to work?
-- Jimmy Clay Read free ebooks !!!!! Go to my web page: www.songofthecoyote.com/Received on Tue Oct 18 02:32:10 2005 |