Author Topic: Installer - uniqid & PHP4  (Read 8157 times)

Offline chrisonline

  • Newbie
  • *
  • Posts: 3
Installer - uniqid & PHP4
« on: June 03, 2008, 03:52:02 AM »
In the test.php file there is an function uniqid without parameters.
In PHP4 the uniqid command does not accept this command without parameters.

Error Message:

Warning: uniqid() expects at least 1 parameter, 0 given in /home/.sites/102/site738/web/WEBMAIL/installer/test.php on line 123

Solution for PHP4 users:
Change the line
$insert_id = md5(uniqid());
into
$inser_id = md5(uniqid(rand(), true));

:-)

Offline Watchkeeper

  • Newbie
  • *
  • Posts: 6
Installer - uniqid & PHP4
« Reply #1 on: June 04, 2008, 12:59:42 PM »
Is  $inser_id = md5(uniqid(rand(), true)); correct, or should it be  $insert_id = md5(uniqid(rand(), true));?

Offline chrisonline

  • Newbie
  • *
  • Posts: 3
Installer - uniqid & PHP4
« Reply #2 on: June 04, 2008, 03:50:01 PM »
Sorry it should be insert_id!