Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone written code to replace SYS(2015)?
Message
De
26/09/2006 05:46:00
Peter Easson
Catalina Trading
Sydney, Australie
 
 
À
25/09/2006 19:12:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01157093
Message ID:
01157184
Vues:
25
sys(2015) is based on the following
'Calling SYS(2015) more than once during the same millisecond interval will return a unique character string.'
Whilst PHP doesn't have such a function, it's easy to simulate. Probably the easiest way to get a unique value in PHP is to md5() a microtime value.
'microtime() returns the current Unix timestamp with microseconds. This function is only available on operating systems that support the gettimeofday() system call.'
md5 returns a string and microtime returns a value determined by the parameter set.See http://au3.php.net/microtime
----
VFP and PHP are the best of both worlds :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform