Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/02/2013, 09:58
chicosandro2004
 
Fecha de Ingreso: agosto-2005
Mensajes: 76
Antigüedad: 18 años, 8 meses
Puntos: 4
Respuesta: error con server dedicado -> Cannot redeclare date_diff()

aca adjunto la funcion que al parecer presenta error
http://70.38.31.52/~poneloc/clasificados/



Código PHP:
function date_diff($tfirst$tsecond)

{

   
$totalsec=$tsecond-$tfirst;

   
$days=round(($totalsec/86400));

   
$totalsec=$totalsec 86400;

   
$hours=round(($totalsec/3600));

   
$totalsec=$totalsec 3600;

   
$minutes=round(($totalsec/60));

   
$seconds=$totalsec 60;

  

   

   
$ret["days"]=$days;

   
$ret["hours"]=$hours;

   
$ret["minutes"]=$minutes;

   
$ret["secods"]=$seconds;

   

   return 
$ret;