Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/10/2005, 11:33
samuel2005
 
Fecha de Ingreso: marzo-2005
Mensajes: 49
Antigüedad: 19 años, 1 mes
Puntos: 2
Problema con icluide

tengo una libreria php asi:
<?php
function fun_top($sec)
{
echo "<div id='top'><h1>$sec</h1></div>";
}
?>

y lo incluyo en otro php asi:
<?php
include ("php/clase_top.php");?>

<? $sec="Mi web";
echo fun_top ("$sec");?>

y me larga este error:

Fatal error: Call to undefined function: fun_top() in /home/public_html/inicio/index.php on line 41