Re: Error message

From: Date: Thu, 18 Sep 2008 23:04:12 +0000
Subject: Re: Error message
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-280467@lists.php.net to get a copy of this message
No puedes tener ningun espacio en blanco delante de session_start(); Sorry for my english: you cant have any blank spaccing before SESSION_START() Prueba: TRY: <?php session_start(); echo 'Welcome to page #1'; $_SESSION['favcolor'] = 'green'; $_SESSION['animal'] = 'cat'; $_SESSION['time'] = time(); // Works if session cookie was accepted echo '<br /><a href="page2.php">page 2</a>'; // Or maybe pass along the session id, if needed echo '<br /><a href="page2.php?' . SID . '">page 2</a>'; ?>

« previous php.general (#280467) next »