note 39331 added to function.rand

From: Date: Sun, 25 Jan 2004 02:10:38 +0000
Subject: note 39331 added to function.rand
Groups: php.notes 
Request: Send a blank email to php-notes+get-64127@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.rand.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39331 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39331&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39331&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64127) next »