note 39331 deleted from function.rand by tomsommer

From: Date: Sun, 25 Jan 2004 14:55:58 +0000
Subject: note 39331 deleted from function.rand by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64148@lists.php.net to get a copy of this message
Note Submitter: ark at zds ---- While this has probably been noted before, quite a few functions don't exactly work as required under IIS 5 (probably 4+) using PHP as a CGI. rand() and mc_rand() won't actually return a random value. Instead, it's a fixed one. rand(1, 7) has actually given me a consistant 35, so I'm guessing it's a Microsoft thing. It does something similar with session data, and handling header redirects. So, if your working on a production IIS server, test it out first. Chances are you'll need to switch over to the ISAPI dll.

« previous php.notes (#64148) next »