hello!
I've another problem. My site runs on my own apache server (1.3.33) with php (4.3.11) and I regulary get this text in apache log (error_log):
Code:
[Tue Apr 26 09:24:10 2005] [error] PHP Notice: Undefined variable: ss in /var/www/htdocs/jenisej/cmsimple/cms.php on line 162
The site seems to work perfectly, except the fact I get this error. I have checked my cms.php and found that I in line nr 157 I have this :
Code:
$ss=$s;$c[$s]=preg_replace("/<h[1-3][^>]*>(\ | )?<\/h[1-3]>/i","",stripslashes($text));if($s==0)if(!preg_match("/^(\n)?<h1[^>]*>.*<\/h1>/i
",rmnl($c[0]))&&!preg_match("/^(<p[^>]*>)?(\ | |<br \/>)?(<\/p>)?(\n)?$/i",rmnl($c[0])))$c[0]='<h1>'.$tx['toc']['missing'].'</h1>'.$c[0];$
title=ucfirst($tx['filetype']['content']);if($fh=@fopen($pth['file']['content'],"w")){fwrite($fh,'<html><head>'.head().'</head><body>'."\n");fo
reach($c as $i){fwrite($fh,rmnl($i."\n"));}fwrite($fh,'</body></html>');fclose($fh);rfc();}else e('cntwriteto','content',$pth['file']['content'
]);$title='';}
and in line 162 I have this:
Code:
if($s<0&&$ss<$cl)$s=$ss;if($s>-1){$su=$u[$s];$iimage='';
Is this normal?