Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone written code to replace SYS(2015)?
Message
From
26/09/2006 05:46:00
Peter Easson
Catalina Trading
Sydney, Australia
 
 
To
25/09/2006 19:12:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01157093
Message ID:
01157184
Views:
24
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 :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform