เอาโค้ด php สร้าง password มาแจกครับผม

เริ่มโดย วอนนอนคุก, 09 กุมภาพันธ์ 2011, 23:30:30

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

วอนนอนคุก

แบบแรกครับผม
<?php
// PHP Document
function random_password($len) {
sranddate("s") );
$chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
$chars.= "1234567890!@#$%^&*()";
$ret_str "";
$num strlen($chars);
for(
$i=0$i $len$i++) {
$ret_str.= $chars[rand()%$num];
}
return 
$ret_str;
}
$password random_password(13);
echo 
"Your random password is: $password";
?>


แบบที่สองครับผม
<?php
// PHP Document
function random_password($len)
{
srand((double)microtime()*10000000);
$chars "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
$ret_str "";
$num strlen($chars);
for(
$i 0$i $len$i++)
{
$ret_str.= $chars[rand()%$num];
$ret_str.="";
}
return 
$ret_str;
}
$password random_password(13);
echo 
"Your random password is: $password";
?>


ถูกใจ + ให้ด้วยครับผม  :'(

sjsniper


ingens

โหลดหนัง 18+ ฟรี  *Link Removed*

penthai06

[direct=http://www.compilewedding.com]Wedding Directory, Bridal, Compilewedding.com[/direct]
[direct=http://www.traveldirectlink.com]Travel Directory, Traveldirectlink.com[/direct]

ninehax

[direct=http://www.rukidea.com][/direct]

xvlnw.com

ตัดให้เหลือแค่

$chars = "!@#$%^&*()";

พอครับ เดาไม่ออกแน่
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

วอนนอนคุก


phpthai2

เอาไปใช้ทำอะไรครับ  :P   สร้าง password   แบบว่าสร้างให้ยากๆหรอครับ  :wanwan008:

วอนนอนคุก

อ้างถึงจาก: phpthai2 ใน 10 กุมภาพันธ์ 2011, 01:27:07
เอาไปใช้ทำอะไรครับ  :P   สร้าง password   แบบว่าสร้างให้ยากๆหรอครับ  :wanwan008:

ครับผม

aum_mix

ขายที่ดิน 31 ไร่ อยู่ [direct=http://www.thailandpremiumproperty.com]ที่ดินสวย[/direct] ทำเลดีติดถนน เหมาะแก่การลงทุนเป็นอย่างยิ่ง [direct=http://www.thailandpremiumproperty.com]ที่ดินทำเลดี[/direct] และที่ดิน 2,000 ไร่ จังหวัดกาญจนบุรี [direct=http://www.thailandpremiumproperty.com]ที่ดินราคาดี[/direct]

ongying.com

มีแบบระบบ SMF ไหม ประมาณดูในดีบีจะอ่านไม่ออก พอใช้ลืมพาส จะสุ่มมาให้ใหม่ไม่เหมือนพาสเก่า
ในเมื่อต้องการเงินเหมือนกัน ทำไมถึงไม่ร่วมมือกันล่ะ

deeztiwz

+1 ครับ เป็นอีกตัวที่พวกประยุค นำไปใช้สำหรับพวกใช้งานการauto posเลยนะ
- รับซื้อเว็บที่ดิน คอนโด ขายบ้าน ทุกชนิดครับ ทั้งเวบทั้งเพจทั้งกลุ่มทุกอย่างครับ (ติดต่อ LINE)
- รับฝากขายสินค้าทุกชนิด ลงระบบdropship มีสมาชิกพ่อค้าแม่ค้ารอซื้อครับ
- รับซื้อเฟซบุก มีอายุ จำนวนมาก รับไม่อั้นครับ
-  [direct=http://www.xn--22cs0b0bdj4hsa2c.com]ขายซิมทรู[/direct]ยังไม่ลงทะเบียนซิม มีเยอะ ติดต่อไลน์ครับ
[direct=https://iline.in.th]หาเพื่อนไลน์[/direct] . [direct=https://atline.iline.in.th]หากลุ่มไลน์[/direct] .

[direct=https://admintd.com]ลงประกาศขายที่ดิน[/direct]

ติดต่อ http://goo.gl/nU2btZ

XXL

อ้างถึงจาก: ongying.com ใน 10 กุมภาพันธ์ 2011, 10:44:48
มีแบบระบบ SMF ไหม ประมาณดูในดีบีจะอ่านไม่ออก พอใช้ลืมพาส จะสุ่มมาให้ใหม่ไม่เหมือนพาสเก่า

ขอมูลที่ บันทึกลง DB ต้องเข้ารหัสอีกที่ครับ 
$pwd_db = md5($password);
รถไฟวิ่ง ฉึกฉัก..[direct=1].[/direct][direct=2].[/direct][direct=3].[/direct][direct=4].[/direct][direct=5].[/direct]...ถึงก็ช่าง..ไม่ถึงก็ช่าง..

~เผือกสั่งมาลุย++