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 <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  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.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to