note 18788 added to function.session-start

From: Date: Tue, 05 Feb 2002 21:03:57 +0000
Subject: note 18788 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-26270@lists.php.net to get a copy of this message
A common mistake (I found out the hard way), is to use tab/space after the <?php tag: /* this won't work */ <?php session_start(); echo "session_start() works!"; ?> The reason is that you can't send anything before the function call /* this works */ <?php session_start(); echo "session_start() works!"; ?> -- http://www.php.net/manual/en/function.session-start.php http://master.php.net/manage/user-notes.php?action=edit+18788 http://master.php.net/manage/user-notes.php?action=delete+18788 http://master.php.net/manage/user-notes.php?action=reject+18788

« previous php.notes (#26270) next »