Re: fatal error

From: Date: Wed, 28 Nov 2001 19:01:09 +0000
Subject: Re: fatal error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-75920@lists.php.net to get a copy of this message
This error indicates that the code declaring the function is in the code more than one time. You can only have the function declaration once. If you are including the funciones.php in another script, make sure that it is only included once. If it is included more than once it will give you this error the second time it is included. Fred William Sanchez Sanchez <William@cubacel.com> wrote in message news:7DE83A54702AD41190C200B0D020BEF0CA0FDB@atlantis.sede.cubacel.com... I got that, Why it could be? Fatal error: Cannot redeclare reporte_llamada() in c:\Inetpub\wwwroot\online\includes\funciones.php on line 4 and the code for reporte_llamada() in ...\funciones.php is : function reporte_llamada ($telefono,&$folio,$fecha_ini,$fecha_fin, $tipo) { // llama a diferentes procedimientos en función de $tipo switch($tipo){ case 0: // DETALLE LLAMADAS TELEFONOS $connstring = "begin PRODUCCION.REPORTE_LLAMADA_ONLINE($telefono,0,:FOLIO,'$fecha_ini','$fecha_fi n'); end;"; break; case 1: // DETALLE LLAMADAS REVENDEDORES $connstring = "begin PACK_REVENDEDOR.OBTENER_REPORTE_RV_P($telefono,'$fecha_ini','$fecha_fin',:FO LIO); end;"; break; } $conn = ocilogon(conn_user, conn_pwd, conn_sid); $stmt = ociparse($conn, $connstring); file://obtener parámetros ocibindbyname($stmt,":FOLIO",&$folio,32); ociexecute($stmt); ocifreestatement($stmt); } // reporte llamada THANK U.

« previous php.general (#75920) next »