I am trying to test the ArdGuest - Free PHP Guestbook Script on a production server before installing on website.
I get the fllowing PHP Warning: eregi() [<a href=‘function.eregi’>function.eregi</a>]: REG_EMPTY in C:\CustomerData\shopdemo.webitry.net\index.php on line 601. [I]I have marked line 601 in the code below.
[/I]
function is_spam($string) {
$data = "spamwords.dat";
$is_spam = false;
if (file_exists($data)) {
$spamword = file($data);
$jmlrec = count($spamword);
for ($i=0; $i<$jmlrec; $i++) {
$spamword[$i] = trim($spamword[$i]);
line 601 if (eregi($spamword[$i],$string)) {
$is_spam = true;
break;
}
What is causing the error and how can it be corrected?
I tried the above insert and also checked to ensure no blank lines in spamword file!
When the Submit button is clicked - just for a split second the spamword file detail appears in the background before the guestbook listing is presented!
Testing link remains at www.shopdemo.webitry.net/index.php
Might there be a simple workaround to eliminate the brief appearance of the spamword file detail from the screen?