How to Create Random Images using PHP?

Discussion in 'PHP' started by hotxuser, Aug 31, 2012.

  1. #1
    How to Create Random Images using PHP?:cool:
     
    hotxuser, Aug 31, 2012 IP
  2. afstanislav

    afstanislav Greenhorn

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    16
    #2
    What exactly do you mean??? Captcha, random image from DB or from where?
     
    afstanislav, Aug 31, 2012 IP
  3. kod0k

    kod0k Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    hi, you can use tag: rand();

    :)
     
    kod0k, Aug 31, 2012 IP
  4. afstanislav

    afstanislav Greenhorn

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    16
    #4
    or array_rand()
    Not very good solution ORDER BY RAND() from MySQL if you have more than 1500 - 2000 records
     
    afstanislav, Sep 1, 2012 IP
  5. greyinfotech

    greyinfotech Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    GD Lib is used to create images in PHP. You can also create it by any text or number. Like captcha as say

    You can easily find example on internet
     
    greyinfotech, Sep 18, 2012 IP