He realizado un menu, el cual quiero incluir en los demas scripts con la intencion de ahorrar tiempo y codigo, pero al hacer el llamado del mismo con la funcion Include me sale el siguiente error:
Warning: require(menu.php): failed to open stream: No such file or directory in C:\wamp\www\posadavzla\index.php on line 2
Fatal error: require(): Failed opening required 'menu.php' (include_path='.;C:\php\pear') in C:\wamp\www\posadavzla\index.php on line
Aqui les muestro el codigo:
menu.php
Código HTML:
Ver original
<!DOCTYPE html> <html lang="es"> <head> <script> window.location='/posadavzla/' </script> <link rel="stylesheet" type="text/css" href="/posadavzla/utilidades/css/banner.css"/> <link rel="stylesheet" type="text/css" href="/posadavzla/utilidades/css/estilo.css"/> <link rel="stylesheet" type="text/css" href="/posadavzla/utilidades/css/tablas.css"/> <link rel="stylesheet" type="text/css" href="/posadavzla/utilidades/css/enlaces.css"/> <link rel="stylesheet" type="text/css" href="/posadavzla/utilidades/css/menu.css"/> <link rel="stylesheet" type="text/css" href="/posadavzla/utilidades/css/boton.css"/> <link rel="stylesheet" type="text/css" href="/posadavzla/utilidades/css/boton2.css"/> <meta charset="utf-8"/> <meta name="index" content="pagina principal" /> </head> <body> <header> <table class="banner"> </td> </tr> </table> </header> <table> </tr> </table> <table class="info"> <ul> </ul> </tr> </table> </body> </html>
y aqui es donde intento hacer el llamado del script:
index.php
Código PHP:
<?php
require ("menu.php");
?>
<p>
Aqui va el resto del contenido.
</p>