Primero que nada queria agradecerles y decirles que hace rato que doy vueltas por el foro y que son de gran ayuda para los problemas que se me presentan siempre en php, asique por eso me decidi registrar.
Ahora les presento el problema que tengo.
Header.php Código PHP:
<?
require_once("Funciones/identificacion_fns.php");
session_start();
?>
<html>
<head>
<title> Header </title>
<link rel="stylesheet" type="text/css" href="../../../../estilos.css" media="screen" />
</head>
<body>
<table width="960" height="186" border=0 align="center" cellspacing="0" cellpadding="0">
<tr>
<td rowspan=3 width="200" background="../../../../img/Head/logo.png">   </td>
<td colspan=3 height="33" background="../../../../img/Head/publi3.gif"> </td>
</tr>
<tr>
<td width="16" background="../../../../img/Head/publi1.gif"> </td>
<td width="728" height="90">
<script type="text/javascript"><!--
google_ad_client = "pub-8579466242853926";
/* 728x90 hhrev */
google_ad_slot = "2096433936";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td width="16" background="../../../../img/Head/publi2.gif"> </td>
</tr>
<tr>
<td colspan=3 height="33" background="../../../../img/Head/publi4.gif"> </td>
</tr>
<tr>
<? check_valid_user(); ?>
</td>
</table>
</body>
</html>
identificacion_fns.php Código PHP:
<?
function check_valid_user()
// see if somebody is logged in and notify them if not
{
global $valid_user;
if (session_is_registered("valid_user"))
{ ?>
<td colspan=4 height="30">
<table width="960" height="30" background="../../../../img/Head/login.gif" cellspacing="0" cellpadding="0">
<tr>
<td width="16"> </td>
<td width="848"><img src="../../../../Img/Head/on.gif"> Bienvenid@ <strong><? echo "$valid_user" ?></strong> Cuenta | Ficha | Trabajos | Mensajes | Cerrar sesión</td>
</tr>
</table>
<?
}
else
{?>
<form action="../../../../login.php" method=post>
<td colspan=4 height="30">
<table width="960" height="30" background="../../../../img/Head/login.gif" cellspacing="0" cellpadding="0">
<tr>
<td width="16"> </td>
<td width="52"> Usuario: </td>
<td width="103"> <input type="text" name="usuario" size="12"> </td>
<td width="64"> Password: </td>
<td width="103"> <input type="password" name="password" size="12"> </td>
<td width="76"> <input type="submit" value="Ingresar"> </td>
<td width="15"> </td>
<td> ¿Aún sin usuario?<a href="../../../../Register" target="_self"><FONT COLOR="0b1952"><strong> <U>Registrate</U></strong></font></a></td>
</tr>
</table>
</form>
<?
}
}
?>
La solucion que encontre fue meterle un "@" a session_start para que no aparesca el error ya que la funcion a pesar de ese error funciona correctamente... pero espero que ustedes tengan una solucion mejor..
muchas gracias de ya.