RE: [PHP] class attributes and __construct

2010-04-15 Thread Tommy Pham
That's what I meant. IMO, it's also a micro optimization since it doesn't need an extra step of looking the variable and assigning the value when it's not needed. Plus, it allows better polymorphism through methods/functions. Regards, Tommy > > On 15/04/2010

RE: [PHP] class attributes and __construct

2010-04-15 Thread Tommy Pham
Hi Ashley, > -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Thursday, April 15, 2010 6:38 AM > To: PHP General List > Subject: [PHP] class attributes and __construct > > I think this is probably going to end up as one of those coders' > preference ty

RE: [PHP] Inserting into multiple tables

2010-04-10 Thread Tommy Pham
Hi Gary, > -Original Message- > From: Gary [mailto:gwp...@ptd.net] > Sent: Saturday, April 10, 2010 2:28 PM > To: php-general@lists.php.net > Subject: [PHP] Inserting into multiple tables > > I am experimenting with multiple tables, it is only a test that is my > local > machine only. Thi

Re: [PHP] Re: Tokutek Acquires Oracle

2010-04-01 Thread Tommy Pham
On Thu, Apr 1, 2010 at 1:57 PM, Ashley Sheridan wrote: > On Thu, 2010-04-01 at 21:58 +0100, Nathan Rixham wrote: > >> Daevid Vincent wrote: >> > http://tokutek.com/2010/04/tokutek-acquires-oracle/ >> > >> > April 1, 2010, Totutek, Inc., announced the acquisition of Oracle >> > Corporation. "Tokute

Re: [PHP] I'm a newbie and running php on Linux

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 11:25 AM, King Coffee wrote: > Thanks, > I think Output_Buffering may be the difference on the two servers. I had a > default php.ini on the Linux server but not on the Windows server. But for > now, I remove the echo statement. > > Thank, > King > > "jose javier parra sanc

Re: [PHP] Re: using UID in DB

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 11:16 AM, tedd wrote: > > I didn't say otherwise. > > At some point, you asked how others solve the unique problem and I provided > my solution. > > Cheers, > > tedd > Sorry, I misread that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Re: using UID in DB

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 11:01 AM, Nathan Rixham wrote: > Tommy Pham wrote: >> On Wed, Mar 31, 2010 at 4:06 AM, Nathan Rixham wrote: >>> Tommy Pham wrote: >>>> As for spatial data types, I've never find much use for non scientific >>>> related.  (e

Re: [PHP] Re: using UID in DB

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 10:23 AM, tedd wrote: > At 5:56 PM -0700 3/30/10, Tommy Pham wrote: >> >> On Tue, Mar 30, 2010 at 2:27 PM, Nathan Rixham wrote: >> >>>  nope never been able to find any significant advantage; and thus ended >>>  up using http ur

Re: [PHP] Something wrong with the PHP-INSTALL list ?

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 10:24 AM, Nilesh Govindarajan wrote: > No I don't have any problems. I was replying to one's problem. > My mistake :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: using UID in DB

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 4:06 AM, Nathan Rixham wrote: > Tommy Pham wrote: >> >> As for spatial data types, I've never find much use for non scientific >> related.  (example) If using point as a PK, if MySQL stores it the >> same way as PostgreSQL which is 16

Re: [PHP] Audiobooks for Developers

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 6:02 AM, Ashley Sheridan wrote: > On Wed, 2010-03-31 at 15:01 +0200, Auto-Deppe C. Hänsel wrote: > >> > -Original Message- >> > From: Bob McConnell [mailto:r...@cbord.com] >> > Sent: Wednesday, March 31, 2010 2:52 PM >> > To: php-general@lists.php.net >> > Subject:

Re: [PHP] Something wrong with the PHP-INSTALL list ?

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 3:50 AM, Nilesh Govindarajan wrote: > Any replies I send to PHP-INSTALL list, I get the follow response: > Any ideas why this is happening ? > > Original Message > Subject:        Re: [PHP-INSTALL] installation problem with php and Apache > [Incident:10033

Re: [PHP] Re: using UID in DB

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 2:57 AM, Nathan Rixham wrote: > Tommy Pham wrote: >> On Tue, Mar 30, 2010 at 2:27 PM, Nathan Rixham wrote: >> >>> nope never been able to find any significant advantage; and thus ended >>> up using http uri's in my own domain space(s)

Re: [PHP] Audiobooks for Developers

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 2:41 AM, Auto-Deppe C. Hänsel wrote: > Good day all, > > since I am driving 2 hrs each day listening to either my radio or the songs > on my USB drive, I was wondering whether there are some web dev related > audio books for download out there. > > I have been searching the

Re: [PHP] using UID in DB

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 2:29 AM, Lester Caine wrote: > Tommy Pham wrote: >>> >>> Storage wise it is just a 128 bit number, so twice as big as a simple 64 >>> bit >>> 'generator' that would normally be used in a single database system. The >&g

Re: [PHP] how to provide download of files mow in documentroot

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 12:43 AM, Anshul Agrawal wrote: > On Wed, Mar 31, 2010 at 1:12 AM, Nathan Rixham wrote: > >> Anshul Agrawal wrote: >> > On Tue, Mar 30, 2010 at 8:41 PM, Jan G.B. >> wrote: >> > >> >> 2010/3/30 Nathan Rixham : >> >>> Jan G.B. wrote: >> 2010/3/29 Nathan Rixham >>

Re: [PHP] using UID in DB

2010-03-31 Thread Tommy Pham
On Wed, Mar 31, 2010 at 12:37 AM, Lester Caine wrote: > Tommy Pham wrote: >> >> Hi, >> >> I'm just wondering if anyone on this list using some type of >> UID/UUID/GUID in any of the DB?  If so, what DBMS/RDBMS are you using >> and how many rows do yo

Re: [PHP] Newbie Question about Conditionals

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro wrote: > Hey all! > This is probably my second post on the list, so please be gentle. Right now > I am running through the "Heads First PHP and MySQL" book from O'Reilly. > It's been quite enjoyable so far, but I have some questions about some of > the

Re: [PHP] using UID in DB

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 8:38 PM, Paul M Foster wrote: > On Tue, Mar 30, 2010 at 08:07:01PM -0700, Tommy Pham wrote: > >> On Tue, Mar 30, 2010 at 7:37 PM, Paul M Foster >> wrote: >> > >> > Unless you have some compelling need to store a number like this, I >

Re: [PHP] using UID in DB

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 7:37 PM, Paul M Foster wrote: > > Unless you have some compelling need to store a number like this, I > don't see the need to. What I store is what is called in PostgreSQL a > "serial" value. MySQL calls it "auto_increment". You store all the other > values as a row, and th

Re: [PHP] cURL on freebsd

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 7:36 PM, Shane Hill wrote: > can anyone tell me why the cURL code below produces a POST request as > expected on linux, but the same code on freebsd is forced to be a GET > request? > > the linux box is running php 5.2.11 > the freebsd box is running 5.3.2 > > is there a bu

Re: [PHP] Re: using UID in DB

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 2:27 PM, Nathan Rixham wrote: > nope never been able to find any significant advantage; and thus ended > up using http uri's in my own domain space(s) which are always > guaranteed to be unique as I'm issuing them. bonus is that they can be > dereferenced and server as bot

Re: [PHP] using UID in DB

2010-03-30 Thread Tommy Pham
On Tue, Mar 30, 2010 at 2:04 PM, Paul M Foster wrote: > On Tue, Mar 30, 2010 at 01:36:27PM -0700, Tommy Pham wrote: > >> Hi, >> >> I'm just wondering if anyone on this list using some type of >> UID/UUID/GUID in any of the DB?  If so, what DBMS/RDBMS are you usi

[PHP] using UID in DB

2010-03-30 Thread Tommy Pham
Hi, I'm just wondering if anyone on this list using some type of UID/UUID/GUID in any of the DB? If so, what DBMS/RDBMS are you using and how many rows do you have for the table(s) using it? What data type are you using for that column? TIA, Tommy -- PHP General Mailing List (http://www.php.n

Re: [PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 8:15 PM, Robert Cummings wrote: > Daevid Vincent wrote: >> >> >>> >>> -Original Message- >>> From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Thursday, March >>> 25, 2010 7:16 PM >>> >>> Daevid Vincent wrote: If I have to wait 3 seconds for a page

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 3:35 PM, Peter Lind wrote: > On 25 March 2010 23:23, Tommy Pham wrote: >> >> There's the code example from that same link.  You may have executed >> the queries asynchronously, but the process of the results are still >> serial.  Let

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
There's the code example from that same link. You may have executed the queries asynchronously, but the process of the results are still serial. Let's face it, all of our processing of queries are not a simple echo. We iterate/loop through the results and display them in the desired format. H

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 3:04 PM, Tommy Pham wrote: > On Thu, Mar 25, 2010 at 1:50 PM, Per Jessen wrote: >> Tommy Pham wrote: >> >>> I'm presenting the argument for threading. Per is presenting the work >>> around using asynchronous queries via mysqlnd. I

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 1:50 PM, Per Jessen wrote: > Tommy Pham wrote: > >> I'm presenting the argument for threading.  Per is presenting the work >> around using asynchronous queries via mysqlnd.  I did read that link a >> few days ago, "Although the user

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 12:28 PM, Peter Lind wrote: > On 25 March 2010 20:19, Tommy Pham wrote: >> Aren't all feature requests must be analyzed the same way?  Example, >> namespace, how many of us actually uses it now when there is an >> alternative solution- subfolde

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 12:11 PM, Ashley Sheridan wrote: > > On Thu, 2010-03-25 at 12:09 -0700, Tommy Pham wrote: > > On Thu, Mar 25, 2010 at 12:02 PM, Peter Lind wrote: > > On 25 March 2010 19:37, Tommy Pham wrote: > >> On Thu, Mar 25, 2010 at 3:55 AM, Per Jessen wr

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 12:13 PM, Peter Lind wrote: > On 25 March 2010 20:09, Tommy Pham wrote: >> On Thu, Mar 25, 2010 at 12:02 PM, Peter Lind wrote: >>> On 25 March 2010 19:37, Tommy Pham wrote: >>>> On Thu, Mar 25, 2010 at 3:55 AM, Per Jessen wrote: >>&

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 12:02 PM, Peter Lind wrote: > On 25 March 2010 19:37, Tommy Pham wrote: >> On Thu, Mar 25, 2010 at 3:55 AM, Per Jessen wrote: >>> Tommy Pham wrote: >>> >>>> On Thu, Mar 25, 2010 at 1:46 AM, Per Jessen wrote: >>>>>

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 3:55 AM, Per Jessen wrote: > Tommy Pham wrote: > >> On Thu, Mar 25, 2010 at 1:46 AM, Per Jessen wrote: >>>> * If you could implement threads and run those same queries in 2+ >>>> threads, the total time saved from queries execution is

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 1:46 AM, Per Jessen wrote: >> * If you could implement threads and run those same queries in 2+ >> threads, the total time saved from queries execution is 1/2 sec or >> more, which is pass along as the total response time reduced.  Is it >> worth it for you implement thread

Re: [PHP] Re: Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 7:53 PM, Michelle Konzack wrote: > Hello Tommy, > > Am 2010-03-23 19:08:36, hacktest Du folgendes herunter: >> The response time, max 5 seconds, will be tested on local gigabit LAN >> to ensure the adequate response (optimized DB & code & proper >> hardware) without worryin

Re: [PHP] Re: Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 7:03 PM, Michelle Konzack wrote: > Hello Tommy Pham, > > Am 2010-03-23 18:17:56, hacktest Du folgendes herunter: >> Let's go back to my 1st e-commerce example.  The manufacturers list is >> about 3,700.  The categories is about about 2,400.  The

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
As some of you mention that implementing threads will make the DB work harder than the standard serial operations queries, let me ask you these then: * How often does your DB server(s)/cluster utilizes 100% CPU (SMP/MC), memory, and disk IO? * How long is the duration when 100% utilization occurs?

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 3:49 PM, Tommy Pham wrote: > On Wed, Mar 24, 2010 at 3:34 PM, Robert Cummings wrote: >> Tommy Pham wrote: >>> >>> On Wed, Mar 24, 2010 at 1:24 PM, Robert Cummings >>> wrote: >>>> >>>> Tommy Pham wrote: &g

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 3:34 PM, Robert Cummings wrote: > Tommy Pham wrote: >> >> On Wed, Mar 24, 2010 at 1:24 PM, Robert Cummings >> wrote: >>> >>> Tommy Pham wrote: >>>> >>>> On Wed, Mar 24, 2010 at 4:28 AM, Per Jessen wrote: >

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 1:24 PM, Robert Cummings wrote: > > > Tommy Pham wrote: >> >> On Wed, Mar 24, 2010 at 4:28 AM, Per Jessen wrote: >>> >>> Tommy Pham wrote: >>> >>>> On Wed, Mar 24, 2010 at 3:44 AM, Per Jessen wrote: >>>

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 4:28 AM, Per Jessen wrote: > Tommy Pham wrote: > >> On Wed, Mar 24, 2010 at 3:44 AM, Per Jessen wrote: >>> Tommy Pham wrote: >>> >>>> On Wed, Mar 24, 2010 at 3:20 AM, Per Jessen >>>> wrote: >>>>> Tomm

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 10:18 AM, Sancar Saran wrote: > On Wednesday 24 March 2010 03:17:56 Tommy Pham wrote: >> Let's go back to my 1st e-commerce example.  The manufacturers list is >> about 3,700.  The categories is about about 2,400.  The products list >> is right n

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 4:09 AM, Peter Lind wrote: > On 24 March 2010 12:04, Tommy Pham wrote: >> On Wed, Mar 24, 2010 at 3:52 AM, Lester Caine wrote: >>> Tommy Pham wrote: >>>>> >>>>> How exactly will threading in PHP help with the size of the d

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 3:52 AM, Lester Caine wrote: > Tommy Pham wrote: >>> >>> How exactly will threading in PHP help with the size of the database? >>> That makes no sense to me, please help me understand how you think threading >>> will help in this sce

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 3:40 AM, Ashley Sheridan wrote: > > On Wed, 2010-03-24 at 03:38 -0700, Tommy Pham wrote: > > On Wed, Mar 24, 2010 at 3:31 AM, Stuart Dallas wrote: > > On 24 Mar 2010, at 10:24, Tommy Pham wrote: > >> On Wed, Mar 24, 2010 at 2:58 AM, Stuart Dal

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 3:44 AM, Per Jessen wrote: > Tommy Pham wrote: > >> On Wed, Mar 24, 2010 at 3:20 AM, Per Jessen wrote: >>> Tommy Pham wrote: >>> >>>> What I find funny is that one of opponents of PHP threads earlier >>>> mentioned

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 3:39 AM, Stuart Dallas wrote: > > On 24 Mar 2010, at 10:34, Rene Veerman wrote: > >> On Wed, Mar 24, 2010 at 12:28 PM, Tommy Pham wrote: >>> >>> Funny you should mention all that.  Let's say that you're longer with >>> t

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 3:31 AM, Stuart Dallas wrote: > On 24 Mar 2010, at 10:24, Tommy Pham wrote: >> On Wed, Mar 24, 2010 at 2:58 AM, Stuart Dallas wrote: >>> On 24 Mar 2010, at 09:36, Rene Veerman wrote: >>> >>>> unless the actual php developm

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 3:20 AM, Per Jessen wrote: > Tommy Pham wrote: > >> What I find funny is that one of opponents of PHP threads earlier >> mentioned that how silly it would be to be using C in a web app.  Now >> I hear people mentioning C when they need "product

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 2:58 AM, Stuart Dallas wrote: > On 24 Mar 2010, at 09:36, Rene Veerman wrote: > >> unless the actual php development team would like to weigh in on this >> matter of course. >> >> yes, i do consider it that important. >> >> these nay-sayers usually also lobby the dev-team t

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
What I find funny is that one of opponents of PHP threads earlier mentioned that how silly it would be to be using C in a web app. Now I hear people mentioning C when they need "productivity" or "speed"... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Wed, Mar 24, 2010 at 1:09 AM, Ashley Sheridan wrote: > On Wed, 2010-03-24 at 10:00 +0200, Rene Veerman wrote: > >> jeez dude, you're assuming that all software problems are best solved >> by a sql solution. >> imo, they're NOT. example? any realtime system with real work to do. >> >> please sto

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Tue, Mar 23, 2010 at 9:55 PM, Teus Benschop wrote: > On Tue, 2010-03-23 at 21:32 -0700, Tommy Pham wrote: >> # of requests / second can be solved by load balancers/clusters.  What >> about the multiple answers for a simple request per user as in my >> example?  How you wo

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Tommy Pham
On Tue, Mar 23, 2010 at 9:49 PM, Larry Garfield wrote: > On Tuesday 23 March 2010 11:32:10 pm Tommy Pham wrote: >> On Tue, Mar 23, 2010 at 9:06 PM, Teus Benschop > wrote: >> > When looking at PHP as used in enterprise class applications, we can see >> > the followi

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Tommy Pham
product without the informed shopper having to read the description/specifications? The translation is fetched from the DB and not using any 3rd party software translation on the fly. > > Sent from my iPod > > On Mar 23, 2010, at 9:17 PM, Tommy Pham wrote: > >> Let's go

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Tommy Pham
On Tue, Mar 23, 2010 at 9:06 PM, Teus Benschop wrote: > When looking at PHP as used in enterprise class applications, we can see > the following happening. Let imagine that we have a site that gets a > 1000 requests per second. That seems to be a good candidate for > threading so as to be able to

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Tommy Pham
On Tue, Mar 23, 2010 at 6:57 PM, Paul M Foster wrote: > On Tue, Mar 23, 2010 at 06:17:56PM -0700, Tommy Pham wrote: > >> Let's go back to my 1st e-commerce example.  The manufacturers list is >> about 3,700.  The categories is about about 2,400.  The products list >>

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Tommy Pham
On Tue, Mar 23, 2010 at 6:17 PM, Tommy Pham wrote: > Let's go back to my 1st e-commerce example.  The manufacturers list is > about 3,700.  The categories is about about 2,400.  The products list > is right now at 500,000 and expected to be around 750,000.  The site > is only

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Tommy Pham
Let's go back to my 1st e-commerce example. The manufacturers list is about 3,700. The categories is about about 2,400. The products list is right now at 500,000 and expected to be around 750,000. The site is only in English. The store owner wants to expand and be I18n: Chinese, French, German

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Tommy Pham
On Tue, Mar 23, 2010 at 3:33 PM, Per Jessen wrote: > Tommy Pham wrote: > >> On Tue, Mar 23, 2010 at 2:04 AM, Per Jessen wrote: >>> >>> Use the right tool for the right job - PHP is a scripting/interpreted >>> language, it does not need threading (IMO of

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Tommy Pham
On Tue, Mar 23, 2010 at 2:04 AM, Per Jessen wrote: > > Use the right tool for the right job - PHP is a scripting/interpreted > language, it does not need threading (IMO of course). > > > -- > Per Jessen, Zürich (9.4°C) > > I couldn't agree more. But here's a real life example. Your client has a

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Tommy Pham
Here's another analogy. For those of us in the field long enough, we see the power of AJAX and we use it in one form or another. For the newbies, they have yet to see it's power nor the requirements to implement it. Threading is similar to that. It's not for everybody. But for those of us that

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Tommy Pham
On Mon, Mar 22, 2010 at 10:01 PM, Larry Garfield wrote: > On Monday 22 March 2010 10:51:14 pm Tommy Pham wrote: >> Threading is one of the 2 two main reasons why I moved to Java & >> asp.net (C#).  I've built a PHP based web crawler about 10 years ago. >> I ran int

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Tommy Pham
On Mon, Mar 22, 2010 at 7:40 PM, Adam Richardson wrote: > On Mon, Mar 22, 2010 at 10:23 PM, Daevid Vincent wrote: > >> > Is this a case of "it's too hard"? >> > >> > Subscribe to internals. Read the archives. The truth is out there. >> >> I have Googled a while on this and don't see much of

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Tommy Pham
On Thu, Mar 18, 2010 at 8:40 AM, tedd wrote: > At 11:35 AM + 3/18/10, Ashley Sheridan wrote: >> >> The .csv format is just a plain text format, so you won't get formatting >> or formulas in your 'sheets' (csv is also a sheetless format) but it's >> been used for years by many systems for data.

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-17 Thread Tommy Pham
On Sat, Mar 13, 2010 at 11:10 AM, tedd wrote: > Hi gang: > > I just completed writing a survey that has approximately 180 questions in it > and I need a fresh look at how to store the results so I can use them later. > > The survey requires the responder to identify themselves via an > authorizati

Re: [PHP] open source bookshop

2010-03-17 Thread Tommy Pham
On Wed, Mar 17, 2010 at 1:06 PM, Tommy Pham wrote: > On Wed, Mar 17, 2010 at 12:48 PM, Ali Reza Sajedi > wrote: >> Hello all, >> >> Thanks very much for your kind feedback sofar. >> >> I know of many shop and cms systems written in php. >> >> Howe

Re: [PHP] open source bookshop

2010-03-17 Thread Tommy Pham
d, as mentioned hier such a system has its own specific requirements that > other generic systems do  not meet. > > Ali > > - Original Message - From: "O. Lavell" > To: > Sent: Wednesday, March 17, 2010 8:22 PM > Subject: Re: [PHP] open source bookshop > >

Re: [PHP] Re: PHP in HTML code

2010-03-17 Thread Tommy Pham
On Wed, Mar 17, 2010 at 11:01 AM, Rene Veerman wrote: > hmm.. seems easier to me to push a filetree of .php's with the str_replace(), than it is to get all the with your wishes, which may not apply to their situation ;-) > > On Wed, Mar 17, 2010 at 5:14 PM, tedd wrote: >> At 8:55 PM -0400 3/16/

Re: [PHP] open source bookshop

2010-03-17 Thread Tommy Pham
On Wed, Mar 17, 2010 at 7:55 AM, Ali Reza Sajedi wrote: > Hello all, > > Does anybody know a good open source bookshop/bookstore system written in > php+mysql? > > Google and sourceforge search didn't yield good results. > > Any hint would be very much appreciated. > > Ali > > -- > PHP General Mai

Re: [PHP] parse_str() expects parameter 1 to be string, array given

2009-10-19 Thread Tommy Pham
On Mon, Oct 19, 2009 at 12:45 AM, Julian Muscat Doublesin wrote: > Hello* *Everyone, > > I am geetting the error below. Can you please guide me on a fix. It is > working on the live site but not on local server. Has anyone ever experinced > this error before. > * > Warning*: parse_str() expects pa

Re: [PHP] Using setters/getters with array of objects

2009-10-18 Thread Tommy Pham
- Original Message > From: mbneto > To: php-general@lists.php.net > Sent: Sun, October 18, 2009 8:31:53 AM > Subject: [PHP] Using setters/getters with array of objects > > Hi, > > I have two classes User and Email where one User can have many Emails so > I've done like this > > class E

Re: [PHP] Sanitizing potential MySQL strings with no database connection

2009-10-17 Thread Tommy Pham
- Original Message > From: Dotan Cohen > To: Tommy Pham > Cc: php-general. > Sent: Sat, October 17, 2009 10:59:52 AM > Subject: Re: [PHP] Sanitizing potential MySQL strings with no database > connection > > > I don't think so since the mysql

Re: [PHP] all local sites stopped working ...

2009-10-17 Thread Tommy Pham
From: "cr.vege...@gmail.com" To: Tommy Pham ; general php Sent: Sat, October 17, 2009 4:49:53 AM Subject: Re: [PHP] all local sites stopped working ... - Original Message ----- From: "Tommy Pham" To: "general php" Sent: Saturday, October 17, 2009 1:29 P

Re: [PHP] all local sites stopped working ...

2009-10-17 Thread Tommy Pham
- Original Message > From: "cr.vege...@gmail.com" > To: Tommy Pham ; general php > Sent: Sat, October 17, 2009 4:33:02 AM > Subject: Re: [PHP] all local sites stopped working ... > > - Original Message - From: "Tommy Pham" > To: &q

Re: [PHP] all local sites stopped working ...

2009-10-17 Thread Tommy Pham
- Original Message > From: "cr.vege...@gmail.com" > To: Tommy Pham ; general php > Sent: Sat, October 17, 2009 4:19:17 AM > Subject: Re: [PHP] all local sites stopped working ... > > - Original Message - From: "Tommy Pham" > To: &q

Re: [PHP] all local sites stopped working ...

2009-10-17 Thread Tommy Pham
- Original Message > From: "cr.vege...@gmail.com" > To: Tommy Pham ; general php > Sent: Sat, October 17, 2009 4:00:24 AM > Subject: Re: [PHP] all local sites stopped working ... > > - Original Message - From: "Tommy Pham" > To: &q

Re: [PHP] all local sites stopped working ...

2009-10-17 Thread Tommy Pham
- Original Message > From: "cr.vege...@gmail.com" > To: Tommy Pham ; general php > Sent: Sat, October 17, 2009 3:57:48 AM > Subject: Re: [PHP] all local sites stopped working ... > > - Original Message - From: "Tommy Pham" > To: &q

Re: [PHP] all local sites stopped working ...

2009-10-17 Thread Tommy Pham
- Original Message > From: "cr.vege...@gmail.com" > To: John Black > Cc: php-general@lists.php.net > Sent: Sat, October 17, 2009 3:17:22 AM > Subject: Re: [PHP] all local sites stopped working ... > > - Original Message - From: "John Black" > To: > Cc: > Sent: Saturday, Octob

Re: [PHP] all local sites stopped working ...

2009-10-17 Thread Tommy Pham
- Original Message > From: "cr.vege...@gmail.com" > To: John Black > Cc: Tommy Pham ; php-general@lists.php.net > Sent: Sat, October 17, 2009 2:44:32 AM > Subject: Re: [PHP] all local sites stopped working ... > > - Original Message - From: &q

Re: [PHP] all local sites stopped working ...

2009-10-17 Thread Tommy Pham
Original Message > From: "cr.vege...@gmail.com" > To: Tommy Pham ; php-general@lists.php.net > Sent: Sat, October 17, 2009 2:00:25 AM > Subject: Re: [PHP] all local sites stopped working ... > > - Original Message - From: "Tommy Pham" >

Re: [PHP] all local sites stopped working ...

2009-10-17 Thread Tommy Pham
- Original Message > From: "cr.vege...@gmail.com" > To: Hanjie Xu > Cc: php-general@lists.php.net > Sent: Sat, October 17, 2009 12:34:49 AM > Subject: Re: [PHP] all local sites stopped working ... > > Yes, my web server is started. > I also did: Start - Run - IISRESET > and it says: Int

Re: [PHP] PHP broadcast mailer

2009-10-16 Thread Tommy Pham
- Original Message > From: Brian Hazelton > To: php-general@lists.php.net > Sent: Fri, October 16, 2009 11:11:06 PM > Subject: Re: [PHP] PHP broadcast mailer > > I thought about doing a batch email, is that an accepted practice, also how > do I > find my smtp server limit? > > -- PHP

Re: [PHP] Sanitizing potential MySQL strings with no database connection

2009-10-16 Thread Tommy Pham
- Original Message > From: Dotan Cohen > To: php-general. > Sent: Fri, October 16, 2009 7:13:41 PM > Subject: [PHP] Sanitizing potential MySQL strings with no database connection > > How can I configure mysql_real_escape_string() to _not_ need a > database connection in order to do it's

Re: [PHP] PHP broadcast mailer

2009-10-16 Thread Tommy Pham
- Original Message > From: George Langley > To: php-general@lists.php.net > Sent: Fri, October 16, 2009 10:56:42 PM > Subject: Re: [PHP] PHP broadcast mailer > > Hi there. At what point would it be beneficial to subscribe to a mass > mail > service such as Constant Contact or iCont

Re: [PHP] PHP broadcast mailer

2009-10-16 Thread Tommy Pham
- Original Message > From: Brian Hazelton > To: php-general@lists.php.net > Sent: Fri, October 16, 2009 10:41:03 PM > Subject: [PHP] PHP broadcast mailer > > I am in charge of an email newsletter list and making sure it gets sent out > in > time. My problem is I have never done broadca

Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Tommy Pham
- Original Message > From: Dotan Cohen > To: Bipin Upadhyay > Cc: a...@ashleysheridan.co.uk; php-general. > Sent: Fri, October 16, 2009 11:29:09 AM > Subject: Re: [PHP] How to pronounce PHP code over the phone? > > > There are, what you'd call, technical jargon for them. > > However, i

Re: [PHP] VC9 x86 Non Thread Safe or VC9 x86 Thread Safe ?

2009-10-12 Thread Tommy Pham
- Original Message > From: loki > To: php-general@lists.php.net > Sent: Mon, October 12, 2009 3:13:41 AM > Subject: [PHP] VC9 x86 Non Thread Safe or VC9 x86 Thread Safe ? > > Hello, > > We use Php-cgi.exe as FastCGI with our own custom WebServer on Windows Server > What to choose, VC9

Re: [PHP] php exception handling

2009-10-11 Thread Tommy Pham
- Original Message > From: Lars Nielsen > To: php-general@lists.php.net > Sent: Sun, October 11, 2009 2:18:03 PM > Subject: [PHP] php exception handling > > Hi, > > I am trying to make an exception class that emails the errors to myself. > I have started by using the example by ask at n

Re: [PHP] Newbie: Array of objects iteration

2009-10-11 Thread Tommy Pham
- Original Message > From: MEM > To: Tommy Pham ; php-general@lists.php.net > Sent: Sat, October 10, 2009 2:49:23 AM > Subject: RE: [PHP] Newbie: Array of objects iteration > > > > > MEM, > > > > http://www.php.net/language.oop5.refl

Re: [PHP] Newbie: Array of objects iteration

2009-10-09 Thread Tommy Pham
- Original Message > From: MEM > To: MEM ; Fernando Castillo Aparicio ; > Lester Caine ; php-general@lists.php.net > Sent: Fri, October 9, 2009 6:22:05 AM > Subject: RE: [PHP] Newbie: Array of objects iteration > > > Right now, I have something like this: > > > > foreach ($objRecord as

Re: [PHP] Apache Rewrite Issues

2009-10-07 Thread Tommy Pham
- Original Message > From: Russell Seymour > To: php-general@lists.php.net > Sent: Wed, October 7, 2009 3:52:00 AM > Subject: [PHP] Apache Rewrite Issues > > Morning, > > I am trying to make my URLs more search engine friendly and I have come up > against a problem. > > I want the fol

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-07 Thread Tommy Pham
From: tedd To: php-general@lists.php.net; a...@ashleysheridan.co.uk; Daevid Vincent Sent: Wed, October 7, 2009 12:42:41 PM Subject: RE: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo At 1:59 PM +0100 10/7/09, Ashley Sheridan wrote: >>On Wed, 20

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-06 Thread Tommy Pham
- Original Message > From: tedd > To: Martin Scotta ; Paul M Foster > > Cc: php-general@lists.php.net > Sent: Tue, October 6, 2009 11:08:14 AM > Subject: Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo > > At 10:48 AM -0300 10/6/09, Martin Scotta wrote: > > No matter

Re: [PHP] Spry, XML, PHP and XSLT Hell

2009-10-06 Thread Tommy Pham
- Original Message > From: Tommy Pham > To: PHP General list > Sent: Tue, October 6, 2009 10:41:42 AM > Subject: Re: [PHP] Spry, XML, PHP and XSLT Hell > > - Original Message > > From: Matthew Croud > > To: PHP General list > > S

Re: [PHP] Spry, XML, PHP and XSLT Hell

2009-10-06 Thread Tommy Pham
- Original Message > From: Matthew Croud > To: PHP General list > Sent: Tue, October 6, 2009 1:32:18 AM > Subject: [PHP] Spry, XML, PHP and XSLT Hell > > > Okey Doke, > > I'll try and be brief, > Well, my client agreed to a small online store that would hold the same stock > items wh

Re: [PHP] Active Directory LDAP Help

2009-10-06 Thread Tommy Pham
- Original Message > From: Devendra Jadhav > To: Yves Premel-Cabic > Cc: php-general@lists.php.net > Sent: Tue, October 6, 2009 6:18:13 AM > Subject: Re: [PHP] Active Directory LDAP Help > > The existing Infrastructure is ready. and now at this point of time this is > difficult to switc

Re: [PHP] Spry, XML, PHP and XSLT Hell

2009-10-06 Thread Tommy Pham
- Original Message > From: Andrew Mason > To: Nathan Nobbe > Cc: Matthew Croud ; PHP General list > > Sent: Mon, October 5, 2009 8:56:12 PM > Subject: Re: [PHP] Spry, XML, PHP and XSLT Hell > > On Tue, Oct 6, 2009 at 4:37 AM, Nathan Nobbe wrote: > > On Mon, Oct 5, 2009 at 10:10 AM, Ma

Re: [PHP] Variable name as a variable?

2009-10-05 Thread Tommy Pham
- Original Message > From: Dotan Cohen > To: php-general. > Sent: Mon, October 5, 2009 7:56:48 AM > Subject: [PHP] Variable name as a variable? > > I need to store a variable name as a variable. Note quite a C-style > pointer, but a way to access one variable who's name is stored in > a

<    1   2   3   4   5   >