Re: Error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andrew Barnett schreef:
It sounds like there is a space or output before the <?php line. It
should be the very first line on a PHP page, and have no spaces before
it.

a blank space before the <?php tag ... on LINE 6???

Andrew

2008/9/19 CanihoJR <canihojr@xxxxxxxxx>:
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>';
?>




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux