Ver Mensaje Individual
  #11 (permalink)  
Antiguo 10/12/2007, 07:15
platea
 
Fecha de Ingreso: diciembre-2007
Ubicación: huelva
Mensajes: 28
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: problemas con header

No quería poner el código porque es un poco lioso:

Archivo property1.php

if (($_REQUEST['property_type_id'] != "any")AND($_REQUEST['neighborhood_id'] == "any")AND($_REQUEST['area_id'] == "any")AND($_REQUEST['new_dev_id'] == "0")) {
//echo ("<a href ='http://www.southwest-properties.es/about-us.htm'>Seguir</a>");

//<script type="text/javascript">document.location.href='www.southwest-properties.es/about-us.htm'</script>
//ob_start();
header("http://paginadestino.htm");
// ob_end_flush();

}

La primera opción fue solo con header y la segunda lo que me dijisteis del control de salida.

Este archivo está dentro de otro que se llama property.php
este código no lo he tocado

<?php

include 'libs/DbConnection.php';
require 'libs/Smarty.class.php';
require 'conf/config.php';
include 'libs/Language.php';
include 'libs/Global.php';

$smarty->config_load = $language;
$smarty = new Smarty;
$smarty->compile_check = true;
$smarty->debugging = false;

// select language
$smarty->assign("language",$language);
$smarty->assign("wpress",$wpress);
$smarty->assign("wpliteproperty",$wpliteproperty);
$smarty->assign("wpliteversion",$wpliteversion);

// sidenav

dbconnect();

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>TITULO</title>
<meta name="description" content="DESCRIPCION">
<meta name="keywords" content="KEYWORDS">
<link href="global.css" rel="stylesheet" type="text/css" />
<LINK href="mgm.css" type=text/css rel=STYLESHEET>
<link rel="shortcut icon" href="favicon.ico" />
</head>

<body id="search">
<div id="outer">
<img src="img/flags.gif" width="156" height="15" border="0" align="right" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="79,1,153,22" href="index.php" />
</map><br />
<br />

<!-- CODIGO DE LA PAGINA -->
<br />
<br />
</div>
<?php

include('property1.php'); // INCLUYE EL ARCHIVO ANTERIOR


?>
</div>
</body>
</html>


LA salida al primer intento (solo con header) es



Warning: Cannot modify header information - headers already sent by (output started at /home/ftpswp/public_html/property.php:30) in /home/ftpswp/public_html/property1.php on line 211

La salida al segundo intento es: Página en blanco


Perdon por las molestias causadas
Muchisimas gracias