Results 1 to 5 of 5

Thread: how to generate random non repeated numbers in php

Threaded View

  1. #4

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    Re: how to generate random non repeated numbers in php

    Quote Originally Posted by john tindell
    You could use the time that it was generated on by using time() (http://uk2.php.net/manual/en/function.time.php)

    PHP Code:
    $filename time() . ".txt";
    $handle fopen ($filename,"w+"); 
    many thanks for u reply. the whole idea of doing this is to generate unique file for each request from user .Do think by using this method no 2 user get same .txt file when they execute this page?Thanks
    Last edited by tony007; Feb 6th, 2006 at 02:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width