Re: [PHP] Problem with microtime()

2001-08-31 Thread Andrey Hristov
?php $a=123 456; echo (int)$a; $b=(int) $a; echo br; echo $b; ? Produces : 123 123 So I don't think that the problem is how PHP makes the casting but the algorithm is useless. Do that : $ar=explode(' ',microtime()); $a=$ar[1]+$ar[0]; Andrey Hristov IcyGEN Corporation http://www.icygen.com

Re: [PHP] assosiative array in php

2001-08-31 Thread Andrey Hristov
$ar_name[$new_key]=$value; Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Kiat Kin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 31, 2001 12:35 PM Subject: [PHP] assosiative array in php how to insert the new key

Re: [PHP] session.save_handler = user

2001-08-31 Thread Andrey Hristov
A colegue of mine said to me a month ago that in the routines on phpbuilder.com there are one or few bugs. Look at the code. The problem is in session handlers. Hope this will help you. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message

Re: [PHP] move_uploaded_file and related question

2001-08-31 Thread Andrey Hristov
You have to move or delete your file so it have not te be in the /tmp after your script finishes or /tmp will get crowdy. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: --- [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday

Re: [PHP] PHP to fax

2001-08-31 Thread Andrey Hristov
use exec() to call fax program on Linux. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Ari Nepon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 31, 2001 6:25 PM Subject: [PHP] PHP to fax Does anyone know

Re: [PHP] array search

2001-08-31 Thread Andrey Hristov
from http://php.net/quickref.php $os = array (Mac, NT, Irix, Linux); if (in_array (Irix, $os)){ print Got Irix; } Andrey HristovIcyGEN Corporationhttp://www.icygen.comBALANCED SOLUTIONS - Original Message - From: Joseph Bannon [EMAIL PROTECTED] To: PHP (E-mail) [EMAIL

Re: [PHP] How to get a double to show the .00 in a hole number

2001-08-31 Thread Andrey Hristov
Try number_format() if you have int than ($int_var*100)/100 or (double)$int_var number_format((double)$int_var,...) Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Robert J Collins [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent

Re: [PHP] Call to undefined function problem

2001-09-11 Thread Andrey Hristov
if (!define(__FUNCTIONS__) ) must be: if (!defined(__FUNCTIONS__) ) Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Doug Farmer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 6:50 AM Subject: [PHP

Re: [PHP] preg_replace is modifying the type of replacement parameter !!

2001-09-11 Thread Andrey Hristov
Hmmm, RegEx work on strings, so the engine needs strings. Because of that your integers are converted to strings, if you want to give their life back make foreach ($arr as $k=$v){ $arr[$k]+=0; } Now all are integers. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS

Re: [PHP] how to ?

2001-09-11 Thread Andrey Hristov
Look for mysql_affected_rows() docs. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: Clint Tredway [EMAIL PROTECTED] To: Php General MailingList [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 3:40 PM Subject: [PHP] how

<    1   2   3   4