[PHP] Set Variable to Multiple Lines

2002-08-29 Thread Mike richardson
I've been searching for this old php feature (perhaps it was deprecated), and can't get the right keywords to look it up. There was a way, similar to the perl method shown below, to set multiple lines of data equal to a variable. (in perl) $variable = __SOME_HEADER_HERE__ Put whatever is desir

RE: [PHP] How do I get milliseconds?

2002-09-04 Thread Mike richardson
If you are looking for milliseconds on the current time, see the examples on microtime(): http://www.php.net/manual/en/function.microtime.php Here is a summary of how to get milliseconds: list($usec, $sec) = explode(" ",microtime()); $milliseconds = (((float)$usec/1000) + (float)$sec); I have

RE: [PHP] Returning Rows Question

2002-09-04 Thread Mike richardson
While( ) { ... $color = ($color == "FF")? "EAEAEA" : "FF"; print "\n"; ... } -Original Message- From: Christopher J. Crane [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Returning Rows Question

RE: [PHP] formatting a filename

2002-09-05 Thread Mike richardson
Ereg() would be an excellent choice. To move a step further, although it is a little more complex to become familiar with, the perl regular expressions are considerably faster and more efficient for anything with an expression, and str_replace() is faster yet, if replacing a simple string. Thus

RE: [PHP] unix timestamp

2002-09-06 Thread Mike richardson
The attached class is a date utility that I created a long time ago. It parses out SQL dates, does differences, and specific to your needs, you can use dateAdjust() to move a unix timestamp by a number of seconds, minutes, hours, days, months, quarters, years or centuries. You should be able t