El Lunes, 14 de Febrero de 2005 11:07, [EMAIL PROTECTED] escribi�:
> No entiendo lo que quieres decir con que te intenta descargar un
> archivo .phtml �eso significa que te redirije a un phml �cu�l es el
> nombre completo del fichero que se muestra?, y
> �se ve bien, o ves el fuente es decir los comandos en html o php? �te
> da alg�n mensaje de error?

Me refiero a que si intento acceder a http://localhost (o 
http://localhost/index.php) firefox no me abre el archivo, sino que me sale 
la ventana de descarga  (en el primer caso el nombre del archivo a descargar 
es aleatorio, en el segundo 
es index.php) con el siguiente c�digo:

<?php
// $Id: index.php,v 1.82 2004/08/21 06:42:34 dries Exp $

/**
 * @file
 * The PHP page that serves all page requests on a Drupal installation.
 *
 * The routines here dispatch control to the appropriate handler, which then
 * prints the appropriate page.
 */

include_once 'includes/bootstrap.inc';
drupal_page_header();
include_once 'includes/common.inc';

fix_gpc_magic();

$status = menu_execute_active_handler();
switch ($status) {
  case MENU_NOT_FOUND:
    drupal_not_found();
    break;
  case MENU_ACCESS_DENIED:
    drupal_access_denied();
    break;
}

drupal_page_footer();

?>

Imagino que el c�digo es correcto, pero no logro descubrir porqu� me lo trata 
de descargar en vez de abrirlo.

He probado a abrir una p�gina de prueba (prueba.phtml) con el c�digo:

<?php
phpinfo();
?>

Y se muestra correctamente.

�Alguna sugerencia?
-- 
49 Invitaciones de Gmail

Adal Alom Rodr�guez
NO a esta constituci�n europea

Responder a