RE: [PHP] Random string (was Header sent problem)

From: Date: Fri, 17 Jan 2003 18:48:45 +0000
Subject: RE: [PHP] Random string (was Header sent problem)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132028@lists.php.net to get a copy of this message
> I found that the Header already sent problem was caused by the Random > Password Generator I'm using, even if I place this function on the > bottom of the same file I'm trying to open an just call for the result. > > So, to avoid this issue, I need another method of generating a random > number or string of some sort like using the actual time which I can > place inside the setcookie function directly... anyone knows what can I > use? If the function is the problem, then stop echoing or printing anything in the function, before it, or after it. Make sure there is nothing outside of the <? And ?> tags, especially an extra line break after the closing ?> of the file if it's an include file. And, you can use uniqid() to create a random string. ---John Holmes...

« previous php.general (#132028) next »