Tema: Web php
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/11/2005, 02:20
Avatar de Stephano
Stephano
 
Fecha de Ingreso: junio-2005
Ubicación: Arequipa
Mensajes: 392
Antigüedad: 18 años, 10 meses
Puntos: 3
Hola gracias por responder... hize todo lo que me dijste pero me sale un error que es lo que estoy haciendo mal el erro es este.. y una otra cosa cuando pongo index.php?=001 no imprime la pagina 001.php siguie ahi en index.php

index.php
Código PHP:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<? 
// Donde se incluyen las paginas de forma automatica (con la url index.php?id=nombrepagina
// se abriria la pagina nombrepagina.php en esta parte).
if(!$id) { 
include(
"home.php"); 
}
else { 
if(
file_exists("$id.php")) { 
include(
"$id.php"); 

else { 
include(
"error.php"); 


?> 
<p>probando .............. </p>
<p><a href="index.php?=001">link</a></p>
</body>
</html>
001.php
Código PHP:
<html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<
title>Documento sin t&iacute;tulo</title>
</
head>

<
body>
 
nueva web bla bla
</body>
</
html
cuando lo subi al servidor me arroja este error
Warning: main(home.php): failed to open stream: No such file or directory in /home/stepweb/public_html/e/index.php on line 13

Warning: main(): Failed opening 'home.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stepweb/public_html/e/index.php on line 13

probando ..............

Link de la pagina AQUI