GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-Jul-2008, 21:02
jrws jrws is offline
New Member
 
Join Date: Jun 2008
Posts: 2
jrws is on a distinguished road

Is it possible


What I want to know if it is possible (and if so how to implement it) is this:

Pick a random password from an array and change ever 24 hours OR when a user uses the password, show admins and mods password so they do not have to look around.

I was thinking that this will probably require MySQL for the User Database but I have no idea where to even start, I thought this idea was interesting so if you can help it is appreciated.
  #2  
Old 25-Aug-2008, 15:17
freehen's Avatar
freehen freehen is offline
New Member
 
Join Date: Aug 2008
Location: India
Posts: 5
freehen has a little shameless behaviour in the past

Re: Is it possible


w3school has got nice articles for php bginners and php.resourceindex.com and hotscripts.com are the places where you can look for readymade scripts.
  #3  
Old 25-Aug-2008, 15:43
freehen's Avatar
freehen freehen is offline
New Member
 
Join Date: Aug 2008
Location: India
Posts: 5
freehen has a little shameless behaviour in the past

Re: Is it possible


Please read array_rand() at
ca3.php.net

example for selecting a random value from an array

<?php
srand((float) microtime() * 10000000);
$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");
$rand_keys = array_rand($input, 2);
echo $input[$rand_keys[0]] . "\n";
echo $input[$rand_keys[1]] . "\n";
?>

Please add to my reputation if you like the reply...
 
 

Recent GIDBlogToyota - 2008 November Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 21:29.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.