davo
08-18-2003, 06:32 PM
I've got a real web site up and running which works great and uses phpMyChat. This part also works great.
However on my home machine (running: RH 8.0, Linux 2.4.20, apache 2.0.40-11.5, php 4.2.2-8.0.8) at first it phpMyChat would not run, they were displayed as text. Seems that the .php3 file extensions were not recognized. After many changes to both the httpd.conf and /etc/httpd/conf.d/php.conf I managed to get it running. The command "httpd -l" yields the following info:
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
However now when I am running phpMyChat and attempt to go into a chat room I get an error messge:
Fatal error: Call to undefined function: checkwords()
I am wondering if I need to reinstall Apache and compile from scratch?
Or do I need to install the library which will allow me to issue this command "LoadModule php3_module modules/libphp3.so" in my php.conf?
Or could it be something as simple as searching for all short calls to php? (eg <? vs <?php )
My entire error message is as follows:
0)) { // True IP behind a proxy $IP = $IP_array[0]; } else { // Proxy IP $IP = "p".$SimpleIP; }; break; case '2': // Proxy IP $IP = "p".$SimpleIP; }; ?> and Fabiano R. Prestes function checkwords ($String, $TestOnly) { // You can add the words you don't want users to use in the $BadWords array bellow. As an eregi // function is called to find them in strings, you may use valid POSIX 1003.2 regular expressions // (see second line of the array for an example). // Note that search is not case sensitive, except for special characters such as accentued ones. $BadWords = array ( "****", "****([[:alpha:]]*)" ); $ReplaceString = "@#$*!"; // String that will replace "swear words" // Don't modify lines bellow $Found = false; for (reset($BadWords); $ToFind = current($BadWords); next($BadWords)) { $Found = eregi(addslashes($ToFind), $String); if ($Found) { if ($TestOnly) { break; } else { $String = eregi_replace(addslashes($ToFind), $ReplaceString, $String); }; }; }; unset($BadWords); return ($TestOnly ? $Found : $String); } ?>
Fatal error: Call to undefined function: checkwords() in /var/www/html/pn/html/modules/phpMyChat/chat/lib/index.lib.php3 on line 231
I've searched and stumbled around 'till I'm tired of walking into walls in the dark. I'd be gratefull for any help.
Davo
However on my home machine (running: RH 8.0, Linux 2.4.20, apache 2.0.40-11.5, php 4.2.2-8.0.8) at first it phpMyChat would not run, they were displayed as text. Seems that the .php3 file extensions were not recognized. After many changes to both the httpd.conf and /etc/httpd/conf.d/php.conf I managed to get it running. The command "httpd -l" yields the following info:
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c
However now when I am running phpMyChat and attempt to go into a chat room I get an error messge:
Fatal error: Call to undefined function: checkwords()
I am wondering if I need to reinstall Apache and compile from scratch?
Or do I need to install the library which will allow me to issue this command "LoadModule php3_module modules/libphp3.so" in my php.conf?
Or could it be something as simple as searching for all short calls to php? (eg <? vs <?php )
My entire error message is as follows:
0)) { // True IP behind a proxy $IP = $IP_array[0]; } else { // Proxy IP $IP = "p".$SimpleIP; }; break; case '2': // Proxy IP $IP = "p".$SimpleIP; }; ?> and Fabiano R. Prestes function checkwords ($String, $TestOnly) { // You can add the words you don't want users to use in the $BadWords array bellow. As an eregi // function is called to find them in strings, you may use valid POSIX 1003.2 regular expressions // (see second line of the array for an example). // Note that search is not case sensitive, except for special characters such as accentued ones. $BadWords = array ( "****", "****([[:alpha:]]*)" ); $ReplaceString = "@#$*!"; // String that will replace "swear words" // Don't modify lines bellow $Found = false; for (reset($BadWords); $ToFind = current($BadWords); next($BadWords)) { $Found = eregi(addslashes($ToFind), $String); if ($Found) { if ($TestOnly) { break; } else { $String = eregi_replace(addslashes($ToFind), $ReplaceString, $String); }; }; }; unset($BadWords); return ($TestOnly ? $Found : $String); } ?>
Fatal error: Call to undefined function: checkwords() in /var/www/html/pn/html/modules/phpMyChat/chat/lib/index.lib.php3 on line 231
I've searched and stumbled around 'till I'm tired of walking into walls in the dark. I'd be gratefull for any help.
Davo