Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/08/2008, 08:55
Avatar de masterojitos
masterojitos
 
Fecha de Ingreso: julio-2008
Ubicación: Lima Callao Chucuito
Mensajes: 1.931
Antigüedad: 15 años, 9 meses
Puntos: 105
Respuesta: Ayuda urgente porfavor

Cita:
Iniciado por djdraft Ver Mensaje
si pero el problema es que en la pc, osea en el localhost se me ve perfectamente pero cuando lo subo a mi servidor me da ese error
Solo te puedo responer que tu session_start() debe estar al inicio, a menos que utilizes la funcion ob_start() al inicio de todo tu codigo y ob_flush() al final......

tu codigo debe quedar asi:

Código PHP:
<?php session_start(); ?>
<!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=iso-8859-1" />
<title>MINERAFM</title>
<link rel="icon" href="imagenes/animated_favicon1.gif" type="image/gif" >

<link rel="stylesheet" href="stylos/stylo_principal.css" type="text/css" />
<link rel="stylesheet" href="stylos/menu.css" type="text/css" />
<link rel="stylesheet" href="stylos/tags.css" type="text/css" />


</head>

<body>
<div class="wraper">
<div class="cabecera" style="text-align: center; background-color: #fff; padding:2px;">
<!-- ImageReady Slices (mineraproyect.psd) -->
<table id="Tabla_01" width="970" height="200" border="0" cellpadding="0" cellspacing="0" align=center>
<tr>
<td colspan="3">
<img src="imagenes/mineraproyect_01.jpg" width="970" height="51" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="imagenes/mineraproyect_02.jpg" width="533" height="149" alt=""></td>
<td>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="425" height="115">
<param name="movie" value="flash/banner.swf" />
<param name="quality" value="high"/>
<embed src="flash/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="425" height="115"></embed>
</object></noscript>
</td>
<td rowspan="2">
<img src="imagenes/mineraproyect_04.jpg" width="12" height="149" alt=""></td>
</tr>
<tr>
<td>
<img src="imagenes/mineraproyect_05.jpg" width="425" height="34" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->



</div>

<div id="menu">
<ul id="navi">
<li><a href="index.php" title="VOLVER A LA PAGINA DE INICIO">INICIO</a></li>
<li><a href="index.php?id=noticias" title="Ultimas Noticias">NOTICIAS</a></li>
<li><a href="index.php?id=recientes" title="nacionales">RECIENTES</a></li>
<li><a href="index.php?id=contactos" title="nacionales">CONTACTANOS</a></li>
<li><a href="index.php?id=links" title="nacionales">LINKS</a></li>
</ul>
</div>


<?php
if(!empty($_SESSION['usuario'])){

echo 
"<div class=\"menu_admin\"><h3>Menu de administracion</h3>";
echo 
"<a title=\"agregar nuevo articulo\" href=\"index.php?id=add\">AGREGAR NUEVO ARTICULO </a> | ";

echo 
"<a title=\"Usa esta opcion para borrar comentarios no deseados\" href=\"index.php?id=edit_seciones\">EDITAR SECCIONES</a> | ";

echo 
"<a title=\"muestra una lista de todos los articulos que estan en la base de datos para borrarlos\" href=\"index.php?id=add\">LISTAR TODOS LOS ARTICULOS</a> | ";

echo 
"<a title=\"Usa esta opcion para borrar comentarios no deseados\" href=\"index.php?id=mod_coment\">MODERAR COMENTARIOS</a> | ";

echo 
"<a title=\"!!Importante siempre cerrar seccion\" href=\"modulos/logout.php\">CERRAR SECCION</a></div>";
}
?>
o asi:

Código PHP:
<?php ob_start(); ?>
<!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=iso-8859-1" />
<title>MINERAFM</title>
<link rel="icon" href="imagenes/animated_favicon1.gif" type="image/gif" >

<link rel="stylesheet" href="stylos/stylo_principal.css" type="text/css" />
<link rel="stylesheet" href="stylos/menu.css" type="text/css" />
<link rel="stylesheet" href="stylos/tags.css" type="text/css" />


</head>

<body>
<div class="wraper">
<div class="cabecera" style="text-align: center; background-color: #fff; padding:2px;">
<!-- ImageReady Slices (mineraproyect.psd) -->
<table id="Tabla_01" width="970" height="200" border="0" cellpadding="0" cellspacing="0" align=center>
<tr>
<td colspan="3">
<img src="imagenes/mineraproyect_01.jpg" width="970" height="51" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="imagenes/mineraproyect_02.jpg" width="533" height="149" alt=""></td>
<td>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="425" height="115">
<param name="movie" value="flash/banner.swf" />
<param name="quality" value="high"/>
<embed src="flash/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="425" height="115"></embed>
</object></noscript>
</td>
<td rowspan="2">
<img src="imagenes/mineraproyect_04.jpg" width="12" height="149" alt=""></td>
</tr>
<tr>
<td>
<img src="imagenes/mineraproyect_05.jpg" width="425" height="34" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->



</div>

<div id="menu">
<ul id="navi">
<li><a href="index.php" title="VOLVER A LA PAGINA DE INICIO">INICIO</a></li>
<li><a href="index.php?id=noticias" title="Ultimas Noticias">NOTICIAS</a></li>
<li><a href="index.php?id=recientes" title="nacionales">RECIENTES</a></li>
<li><a href="index.php?id=contactos" title="nacionales">CONTACTANOS</a></li>
<li><a href="index.php?id=links" title="nacionales">LINKS</a></li>
</ul>
</div>


<?php

session_start
();
if(!empty(
$_SESSION['usuario'])){

echo 
"<div class=\"menu_admin\"><h3>Menu de administracion</h3>";
echo 
"<a title=\"agregar nuevo articulo\" href=\"index.php?id=add\">AGREGAR NUEVO ARTICULO </a> | ";

echo 
"<a title=\"Usa esta opcion para borrar comentarios no deseados\" href=\"index.php?id=edit_seciones\">EDITAR SECCIONES</a> | ";

echo 
"<a title=\"muestra una lista de todos los articulos que estan en la base de datos para borrarlos\" href=\"index.php?id=add\">LISTAR TODOS LOS ARTICULOS</a> | ";

echo 
"<a title=\"Usa esta opcion para borrar comentarios no deseados\" href=\"index.php?id=mod_coment\">MODERAR COMENTARIOS</a> | ";

echo 
"<a title=\"!!Importante siempre cerrar seccion\" href=\"modulos/logout.php\">CERRAR SECCION</a></div>";
}
ob_flush();
?>
ya tu mismo eres....
__________________
Atte. MasterOjitos :ojotes:
Todo sobre Programación Web
Las ultimas tendencias en Efectos y Recursos Web: MasterOjitos Blog