vito andolini
11-07-2007, 00:33:38
Merhaba arkadaşlar,
Kullandığım sitenin bir kopyası da local'de kurulu. roklatest'i kurdum local'de hata yok ama siteye atınca hata verior. Mozül çalışıyor ama üstünde mod_roklatest.php'nin 33. satırda hata olduğnu rapor eden 3 satırlık bir hata kodu ile... Ben php'den anlamam ama hata kodunu verdiren satırları kopyaladım. Belki siz yardımcı olabilirsiniz diye düşündüm...
33. Satırın Başından kopyaladım bir sonraki kod ayracına kadar...
if (!function_exists(prepareContent)) {
function prepareContent( $text, $length=200 ) {
// strips tags won't remove the actual jscript
$text = preg_replace( "'<script[^>]*>.*?</script>'si", "", $text );
$text = preg_replace( '/{.+?}/', '', $text);
//$text = preg_replace(
'/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is','\2', $text );
// replace line breaking tags with whitespace
$text = preg_replace(
"'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si", ' ', $text );
$text = substr(strip_tags( $text ), 0, $length) ;
return $text;
}
}
Kullandığım sitenin bir kopyası da local'de kurulu. roklatest'i kurdum local'de hata yok ama siteye atınca hata verior. Mozül çalışıyor ama üstünde mod_roklatest.php'nin 33. satırda hata olduğnu rapor eden 3 satırlık bir hata kodu ile... Ben php'den anlamam ama hata kodunu verdiren satırları kopyaladım. Belki siz yardımcı olabilirsiniz diye düşündüm...
33. Satırın Başından kopyaladım bir sonraki kod ayracına kadar...
if (!function_exists(prepareContent)) {
function prepareContent( $text, $length=200 ) {
// strips tags won't remove the actual jscript
$text = preg_replace( "'<script[^>]*>.*?</script>'si", "", $text );
$text = preg_replace( '/{.+?}/', '', $text);
//$text = preg_replace(
'/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is','\2', $text );
// replace line breaking tags with whitespace
$text = preg_replace(
"'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si", ' ', $text );
$text = substr(strip_tags( $text ), 0, $length) ;
return $text;
}
}