like to know if the random characters after the domain name requires cryptographic generation, i mean does it require super security!???
nope? it's a simple random string and must be unique
How to make the random characters which are unique inside the data base, i mean how to check the uniqueness of a generated characters before inserting into a mysql data base
with a recursive funciton: generate the string > check if exists if exists restart from generating the string if doesn't exists take and save it
which loop can be used, while loop or for loop, which one is tye simplest and saves time!?
something like genString() { $str = randomstring; if (exists) return genString(); return $str; }
That is good, let me try
Обсуждают сегодня