+ Post New Thread
Results 1 to 5 of 5
Coding Thread, PHP ID in Coding and Web Development; Can anyone help me out on how to create a unique id similar to the ones that youtube uses e.g. ...
  1. #1

    Join Date
    Jan 2007
    Location
    Durham, UK
    Posts
    328
    Thank Post
    33
    Thanked 17 Times in 12 Posts
    Rep Power
    20

    PHP ID

    Can anyone help me out on how to create a unique id similar to the ones that youtube uses e.g. qas27wHba4w in php, ive searched google but havent found anything


    Thanks
    Jack

  2. #2
    rosswilson's Avatar
    Join Date
    Feb 2008
    Location
    Cheshire
    Posts
    47
    Thank Post
    15
    Thanked 10 Times in 10 Posts
    Rep Power
    15

    Talking Shaun the Sheep

    I personally quite like the Shaun The Sheep video - [nomedia="http://uk.youtube.com/watch?v=qas27wHba4w"]YouTube - Shaun the Sheep - Still Life[/nomedia].

    On topic however, a quick search for "PHP password generator" would get you on track . For example: PHP random password generator.

  3. #3

    Join Date
    Jan 2007
    Location
    Durham, UK
    Posts
    328
    Thank Post
    33
    Thanked 17 Times in 12 Posts
    Rep Power
    20
    lol i knew someone would look at the video :P

    And thanks thats what im looking for

  4. #4

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    639
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324
    You could use uniqid() for something similar.

  5. #5

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,624
    Thank Post
    1,240
    Thanked 778 Times in 675 Posts
    Rep Power
    235
    Quote Originally Posted by Jackd View Post
    Can anyone help me out on how to create a unique id similar to the ones that youtube uses e.g. qas27wHba4w in php
    What you want is a unique identifier rather than just a randomly generated password - i.e. not only should your ID be random, it should be unique (because you don't want two objects identified with the same ID string):

    [ame=http://en.wikipedia.org/wiki/UUID]Universally Unique Identifier - Wikipedia, the free encyclopedia[/ame]

    --
    David Hicks

SHARE:
+ Post New Thread

Similar Threads

  1. PHP commands
    By Silverman in forum Web Development
    Replies: 10
    Last Post: 3rd June 2008, 03:24 PM
  2. PHP Help!
    By Cravon in forum Coding
    Replies: 2
    Last Post: 20th November 2007, 05:05 PM
  3. Help with PHP
    By Gatt in forum Web Development
    Replies: 1
    Last Post: 14th November 2006, 09:01 PM
  4. php help
    By beeswax in forum Windows
    Replies: 33
    Last Post: 14th October 2005, 04:51 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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