Beppis Posted July 31, 2010 Share Posted July 31, 2010 Fatal error: Cannot redeclare limitatexto() (previously declared in funciones.php:4) in funciones.php on line 12 <?php function limitatexto( $texto, $limite ) - Line 4 { if( strlen($texto)>$limite ) { $texto = substr( $texto,0,$limite ); } return $texto; } Line 12 Quote Link to comment https://forums.phpfreaks.com/topic/209453-fatal-error-cannot-redeclare-limitatexto-previously-declared-in/ Share on other sites More sharing options...
Zane Posted July 31, 2010 Share Posted July 31, 2010 This error usually/always means you are trying to create a function of the same name as another. Somewhere you have the same function name Quote Link to comment https://forums.phpfreaks.com/topic/209453-fatal-error-cannot-redeclare-limitatexto-previously-declared-in/#findComment-1093629 Share on other sites More sharing options...
jcbones Posted July 31, 2010 Share Posted July 31, 2010 OR, you are including that page twice inside another script. Quote Link to comment https://forums.phpfreaks.com/topic/209453-fatal-error-cannot-redeclare-limitatexto-previously-declared-in/#findComment-1093635 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.