[PHP-DB] Large Process How to measure time per process

2005-02-26 Thread Chenri
hello all, i'm using the mysql and apache for a matching price and bid transaction and planned to process high volume transaction i've already set the mysql for max_connection and the apache for max connection so it could receive a lot of connections but there one problem i've been

RE: [PHP-DB] Large Process How to measure time per process

2005-02-26 Thread Bastien Koert
you can measure the time by recording the time microtime at the beginning of the process and then again at the end and taking the difference... For long processes that are dependant, I would use the INNODb table type and transactions to keep things in blocks for an all or none situation. Time

Re: [PHP-DB] password in md5 to connect to mysql instead of clear password

2005-02-26 Thread Micah Stevens
Well, yes, but as my key is never transmitted from client to server, it's safer. ;) I encrypt a connect request with my private key, which is can be unencrypted by the public key, but the server knows it's me because only the private key can make the encryption. The message is sent over the

[PHP-DB] Why isn't this working?

2005-02-26 Thread Chris Payne
Hi everyone, Im trying to split a string by comma, but its not working, can you see any reason that the below doesnt work? $keywords = preg_split(',','$Agent_Rep'); Thanks Chris No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus

Re: [PHP-DB] Why isn't this working?

2005-02-26 Thread Rasmus Lerdorf
Chris Payne wrote: Hi everyone, Im trying to split a string by comma, but its not working, can you see any reason that the below doesnt work? $keywords = preg_split(',','$Agent_Rep'); Not sure why you sent this to php-db, but have another look at the preg_split documentation. You need

Re: [PHP-DB] password in md5 to connect to mysql instead of clear password

2005-02-26 Thread Jason Wong
On Sunday 27 February 2005 07:11, Micah Stevens wrote: Well, yes, but as my key is never transmitted from client to server, it's safer. ;) I encrypt a connect request with my private key, which is can be unencrypted by the public key, but the server knows it's me because only the private key

Re: [PHP-DB] Why isn't this working?

2005-02-26 Thread graeme
For more efficient code try the explode() function (You really only want to use the regular expression functions for complex pattern matching, looking for a comma is about as simple as it gets so use the standard string functions) explode (',',$Agent_Rep); graeme. Rasmus Lerdorf wrote: Chris