[PHP] Header sent polem

2003-01-17 Thread Cesar Aracena
Hi all,

Following Chris's idea on how to handle visitors sessions, I'm trying to
setup a cookie with a randomly generated session ID but it throws me the
headers already sent notice but there's nothing above the setcookie
function. Here's part of my code:

?
if (!isset($sessid))
{
require_once(PasswordGenerator.php);
$Password = new PasswordGenerator(10, 10);
$RandPassword = $Password-getHTMLPassword();
setcookie(sessid, .print($RandPassword)., time()+3600);
}
else if (isset($sessid))
{
echo $sessid;
}
[---snip---]

and after all this is then called the header and main files... What is
getting outputted to the browser?

Thanks in advance,

Cesar L. Aracena
[EMAIL PROTECTED]
[EMAIL PROTECTED]
(0299) 156-356688
Neuquén (8300) Capital
Argentina




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




RE: [PHP] Header sent polem

2003-01-17 Thread Matt Schroebel
 -Original Message-
 From: Cesar Aracena [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 17, 2003 12:56 PM
 Subject: [PHP] Header sent polem
 
 
 Hi all,
 
 Following Chris's idea on how to handle visitors sessions, 
 I'm trying to
 setup a cookie with a randomly generated session ID but it 
 throws me the
 headers already sent notice but there's nothing above the setcookie
 function. Here's part of my code:
 
 ?
 if (!isset($sessid))
 {
 require_once(PasswordGenerator.php);

Look for white space in the include file ...

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