Problemas al subir paginas a mi servidor
Buenas tardes experto. Tengo tres pagina login.php, mostrar_inmueble y d_extracto.php el codigo me funciona perfecto al trabajarlo en el servidor apache sobre windows, pero cuando lo subi a mi hosting que esta en linux me sale el sgte error
Warning: Cannot add header information - headers already sent by (output started at /vhosting/home/vh1-gvpo/qGlIy9rLZW6Z3GxATVS_/web/htdocs/nuevo/login.php:9) in /vhosting/home/vh1-gvpo/qGlIy9rLZW6Z3GxATVS_/web/htdocs/nuevo/login.php on line 55
el codigo es el sgte
<?php
session_start();
?>
<html>
<head>
<title>SISTEMA DE CONSULTA DE EXTRACTO RV INMOBILIARIA S.A</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<STYLE type="text/css">
<!--
A:link {COLOR: black; TEXT-DECORATION: none}
A:visited {COLOR: gray; TEXT-DECORATION: none}
A:active {TEXT-DECORATION: none}
A:hover {COLOR: red; TEXT-DECORATION: none} -->
</STYLE>
<body >
<TABLE cellSpacing=0 cellPadding=0 width=766 border=2 bgcolor="#FFFFFF">
<TBODY bgcolor="#FFFFFF">
<TR height=108>
<TD vAlign=top align=left colSpan=2 height=108><div align="center"><img src="cabecera.jpg" width="750" height="108"></div></TD>
</TR>
</table>
<?php
function Conectarse()
{
if (!($link=mysql_connect("localhost","rvinmob","v4aqq")))
{
echo "Error conectando a la base de datos.";
exit();
}
if (!mysql_select_db("rvinmob",$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
?>
<?php
$link=Conectarse();
if (isset($_POST['cedula'])) {
$ced=$_POST["cedula"];
$pas=$_POST["clave"];
$consulta = "select * from propietarios where cedula = '$ced' AND password = '$pas'";
//echo $consulta;
$datos = mysql_query ($consulta,$link);
echo mysql_error($link);
//echo mysql_num_rows($datos);
if (mysql_num_rows($datos) > 0) {
$_SESSION['Cedula'] = $_POST['cedula'];
header('Location: mostrar_inmueble.php');
}
}
?>
<div align="center"><img src="titulo.gif"></div>
<table><tr><td><table border="1"> <tr><td width="58"
vAlign=top bordercolor="#000099" bgcolor="#000099" style="PADDING-TOP: 3px"
title=SMS onmouseover="this.style.backgroundColor='#0066FF'; this.style.color='#000000'; this.style.cursor='hand'"
onmouseout="this.style.backgroundColor=''; this.style.color='white';"><font color="#FFFF00" size="+1"><b><a href="http:\\www.rvinmobiliariasa.com\index.htm">Inicio</a></b></font></td></tr>
</td>
<tr bgcolor="#000099">
<td width="58" bordercolor="#000099"><font color="#FFFFFF" size="+1"><b><IMG height=25
src="top_secciones.gif"
width=120></b></font></td>
</tr>
<tr bgcolor="#000099">
<td width="58"
vAlign=top bordercolor="#000099" bgcolor="#000099" style="PADDING-TOP: 3px"
title=SMS onmouseover="this.style.backgroundColor='#0066FF'; this.style.color='#000000'; this.style.cursor='hand'"
onmouseout="this.style.backgroundColor=''; this.style.color='#000000';"><font color="#FFFFFF"><b><a href="http:\\www.rvinmobiliariasa.com\venta2\index2.php">Ventas</a></b></font> </td></tr>
<tr bgcolor="#000099">
<td width="58"
vAlign=top bordercolor="#000099" bgcolor="#000099" style="PADDING-TOP: 3px"
title=SMS onmouseover="this.style.backgroundColor='#0066FF'; this.style.color='#000000'; this.style.cursor='hand'"
onmouseout="this.style.backgroundColor=''; this.style.color='#000000';"><font color="#FFFFFF"><b><a href="http:\\www.rvinmobiliariasa.com\popuparriendos.htm">Arriendos</a></b></font> </td></tr>
<tr bgcolor="#000099">
<td width="58"
vAlign=top bordercolor="#000099" bgcolor="#000099" style="PADDING-TOP: 3px"
title=SMS onmouseover="this.style.backgroundColor='#0066FF'; this.style.color='#000000'; this.style.cursor='hand'"
onmouseout="this.style.backgroundColor=''; this.style.color='#000000';"><font color="#FFFFFF"><b><a href="http:\\www.rvinmobiliariasa.com\fincas.htm">Arriendos</a></b></font> </td></tr>
</table><td>
<TABLE cellSpacing=0 cellPadding=2 width=350 border=0>
<form name='formulario' method='POST' >
<tr><td><img src="codigo.gif"></td>
<td><input type='text' name='cedula'> </td></tr>
<tr><td><img src="cedula.gif"></td>
<td><input type='password' name='clave'> </td>
<td><input name="submit" type='image' src="button_login.gif" value='Entrar'></td>
</tr>
</form>
</TABLE>
</td></tr></table>
<table><tr> <TD height=20 bgcolor="#000099">
<DIV align=center><FONT size="+2" color="#FFFF00"> <script type="text/javascript">
var tickspeed=3000 //ticker speed in miliseconds (2000=2 seconds)
var enablesubject=1 //enable scroller subject? Set to 0 to hide
if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.dropcontent{display:none;}\n')
document.write('</style>\n')
}
var selectedDiv=0
var totalDivs=0
function contractall(){
var inc=0
while (document.getElementById("dropmsg"+inc)){
document.getElementById("dropmsg"+inc).style.display="none"
inc++
}
}
function expandone(){
var selectedDivObj=document.getElementById("dropmsg"+selectedDiv)
contractall()
document.getElementById("dropcontentsubject").innerHTML=selectedDivObj.getAttribute("subject")
selectedDivObj.style.display="block"
selectedDiv=(selectedDiv<totalDivs-1)? SelectedDiv+1 : 0
setTimeout("expandone()",tickspeed)
}
function startscroller(){
while (document.getElementById("dropmsg"+totalDivs)!=null)
totalDivs++
expandone()
if...
Warning: Cannot add header information - headers already sent by (output started at /vhosting/home/vh1-gvpo/qGlIy9rLZW6Z3GxATVS_/web/htdocs/nuevo/login.php:9) in /vhosting/home/vh1-gvpo/qGlIy9rLZW6Z3GxATVS_/web/htdocs/nuevo/login.php on line 55
el codigo es el sgte
<?php
session_start();
?>
<html>
<head>
<title>SISTEMA DE CONSULTA DE EXTRACTO RV INMOBILIARIA S.A</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<STYLE type="text/css">
<!--
A:link {COLOR: black; TEXT-DECORATION: none}
A:visited {COLOR: gray; TEXT-DECORATION: none}
A:active {TEXT-DECORATION: none}
A:hover {COLOR: red; TEXT-DECORATION: none} -->
</STYLE>
<body >
<TABLE cellSpacing=0 cellPadding=0 width=766 border=2 bgcolor="#FFFFFF">
<TBODY bgcolor="#FFFFFF">
<TR height=108>
<TD vAlign=top align=left colSpan=2 height=108><div align="center"><img src="cabecera.jpg" width="750" height="108"></div></TD>
</TR>
</table>
<?php
function Conectarse()
{
if (!($link=mysql_connect("localhost","rvinmob","v4aqq")))
{
echo "Error conectando a la base de datos.";
exit();
}
if (!mysql_select_db("rvinmob",$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
?>
<?php
$link=Conectarse();
if (isset($_POST['cedula'])) {
$ced=$_POST["cedula"];
$pas=$_POST["clave"];
$consulta = "select * from propietarios where cedula = '$ced' AND password = '$pas'";
//echo $consulta;
$datos = mysql_query ($consulta,$link);
echo mysql_error($link);
//echo mysql_num_rows($datos);
if (mysql_num_rows($datos) > 0) {
$_SESSION['Cedula'] = $_POST['cedula'];
header('Location: mostrar_inmueble.php');
}
}
?>
<div align="center"><img src="titulo.gif"></div>
<table><tr><td><table border="1"> <tr><td width="58"
vAlign=top bordercolor="#000099" bgcolor="#000099" style="PADDING-TOP: 3px"
title=SMS onmouseover="this.style.backgroundColor='#0066FF'; this.style.color='#000000'; this.style.cursor='hand'"
onmouseout="this.style.backgroundColor=''; this.style.color='white';"><font color="#FFFF00" size="+1"><b><a href="http:\\www.rvinmobiliariasa.com\index.htm">Inicio</a></b></font></td></tr>
</td>
<tr bgcolor="#000099">
<td width="58" bordercolor="#000099"><font color="#FFFFFF" size="+1"><b><IMG height=25
src="top_secciones.gif"
width=120></b></font></td>
</tr>
<tr bgcolor="#000099">
<td width="58"
vAlign=top bordercolor="#000099" bgcolor="#000099" style="PADDING-TOP: 3px"
title=SMS onmouseover="this.style.backgroundColor='#0066FF'; this.style.color='#000000'; this.style.cursor='hand'"
onmouseout="this.style.backgroundColor=''; this.style.color='#000000';"><font color="#FFFFFF"><b><a href="http:\\www.rvinmobiliariasa.com\venta2\index2.php">Ventas</a></b></font> </td></tr>
<tr bgcolor="#000099">
<td width="58"
vAlign=top bordercolor="#000099" bgcolor="#000099" style="PADDING-TOP: 3px"
title=SMS onmouseover="this.style.backgroundColor='#0066FF'; this.style.color='#000000'; this.style.cursor='hand'"
onmouseout="this.style.backgroundColor=''; this.style.color='#000000';"><font color="#FFFFFF"><b><a href="http:\\www.rvinmobiliariasa.com\popuparriendos.htm">Arriendos</a></b></font> </td></tr>
<tr bgcolor="#000099">
<td width="58"
vAlign=top bordercolor="#000099" bgcolor="#000099" style="PADDING-TOP: 3px"
title=SMS onmouseover="this.style.backgroundColor='#0066FF'; this.style.color='#000000'; this.style.cursor='hand'"
onmouseout="this.style.backgroundColor=''; this.style.color='#000000';"><font color="#FFFFFF"><b><a href="http:\\www.rvinmobiliariasa.com\fincas.htm">Arriendos</a></b></font> </td></tr>
</table><td>
<TABLE cellSpacing=0 cellPadding=2 width=350 border=0>
<form name='formulario' method='POST' >
<tr><td><img src="codigo.gif"></td>
<td><input type='text' name='cedula'> </td></tr>
<tr><td><img src="cedula.gif"></td>
<td><input type='password' name='clave'> </td>
<td><input name="submit" type='image' src="button_login.gif" value='Entrar'></td>
</tr>
</form>
</TABLE>
</td></tr></table>
<table><tr> <TD height=20 bgcolor="#000099">
<DIV align=center><FONT size="+2" color="#FFFF00"> <script type="text/javascript">
var tickspeed=3000 //ticker speed in miliseconds (2000=2 seconds)
var enablesubject=1 //enable scroller subject? Set to 0 to hide
if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.dropcontent{display:none;}\n')
document.write('</style>\n')
}
var selectedDiv=0
var totalDivs=0
function contractall(){
var inc=0
while (document.getElementById("dropmsg"+inc)){
document.getElementById("dropmsg"+inc).style.display="none"
inc++
}
}
function expandone(){
var selectedDivObj=document.getElementById("dropmsg"+selectedDiv)
contractall()
document.getElementById("dropcontentsubject").innerHTML=selectedDivObj.getAttribute("subject")
selectedDivObj.style.display="block"
selectedDiv=(selectedDiv<totalDivs-1)? SelectedDiv+1 : 0
setTimeout("expandone()",tickspeed)
}
function startscroller(){
while (document.getElementById("dropmsg"+totalDivs)!=null)
totalDivs++
expandone()
if...
1 Respuesta
Respuesta de Jorge Vila
1