Hola, me estoy volviendo loco con un error que me da PHP, es el siguiente:
2016/08/09 11:15:58 [error] 26052#0: *17 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function textos() in /srv/www/arbol/contenido.php on line 3" while reading response header from upstream, client: 195.16.143.6, server: XXXXXXX, request: "GET /contenido.php?opcion=contenido HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm/arbol.sock:", host: "XXXXXXX", referrer: "http://XXXXXXX/"
La función se encuentra en un archivo php donde se encuentran todas las funciones:
function textos($titulo)
    {
        global $conexion;
        $st = $conexion->prepare('select * from textos where titulo = :titulo');
        $st->execute(array(':titulo' => $titulo));  
        $result = $st->fetch(PDO::FETCH_ASSOC); 
        return $result;
    }
En el index.php en el head con un include se añade el archivo, pero a la función se le llama desde otro archivo php con include dentro del section y se llama a la función de la siguiente manera:
$result = textos($titulo);  
Pero según el error de PHP la función no esta definida ¿Donde esta el problema?



