Re: [PHP] incrementing a number from a text file

2005-03-16 Thread Kurt Yoder
On Mar 15, 2005, at 11:24 AM, Richard Lynch wrote: BAD (probably): Select blablabla FROM t1,t2,t3 WHERE customers LIKE '%$s%' OR name LIKE '%$s%' OR domain LIKE '%$s%' OR email LIKE '%$s%' OR log LIKE '%$s%' AND t1.id = t2.t1_id AND t1.id = t3.t1_id GOOD (usually): Select blablabla FROM t1,t2,t3 WH

Re: [PHP] incrementing a number from a text file

2005-03-15 Thread Richard Lynch
BAD (probably): Select blablabla FROM t1,t2,t3 WHERE customers LIKE '%$s%' OR name LIKE '%$s%' OR domain LIKE '%$s%' OR email LIKE '%$s%' OR log LIKE '%$s%' AND t1.id = t2.t1_id AND t1.id = t3.t1_id GOOD (usually): Select blablabla FROM t1,t2,t3 WH

Re: [PHP] incrementing a number from a text file

2005-03-14 Thread Kurt Yoder
On Mar 14, 2005, at 12:45 PM, Richard Lynch wrote: Select blablabla FROM t1,t2,t3 WHERE customers LIKE '%$s%' OR name LIKE '%$s%' OR domain LIKE '%$s%' OR email LIKE '%$s%' OR log LIKE '%$s%' AND t1.id = t2.t1_id AND t1.id = t3.t1_id Horror! Perhaps I'm missing something, but what's wrong with that

Re: [PHP] incrementing a number from a text file

2005-03-14 Thread Richard Lynch
>> Select blablabla FROM t1,t2,t3 >> WHERE customers LIKE '%$s%' >> OR name LIKE '%$s%' >> OR domain LIKE '%$s%' >> OR email LIKE '%$s%' >> OR log LIKE '%$s%' >> AND t1.id = t2.t1_id >> AND t1.id = t3.t1_id >> >> Horror! >> > > Perhaps I'm missing something, but what's wrong with that query? It > l

Re: [PHP] incrementing a number from a text file

2005-03-12 Thread Kurt Yoder
On Mar 11, 2005, at 3:30 AM, Kim Madsen wrote: Or better: I put my query in a link like show customers and I´ve got NO clue about the settings in the mysql db, so this gets "funny" show customers show customers Any application that trusts user input to this extent is in trouble from the start. W

Re: [PHP] incrementing a number from a text file

2005-03-12 Thread Kurt Yoder
.just a suggestion! Regards /Luis -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 3:14 PM To: Ross Hulford Cc: php-general@lists.php.net Subject: Re: [PHP] incrementing a number from a text file I want to read a number from an external (txt) fi

Re[2]: [PHP] incrementing a number from a text file

2005-03-11 Thread Tom Rogers
Hi, Friday, March 11, 2005, 6:30:52 PM, you wrote: KM> -Original Message- KM> From: Richard Lynch [mailto:[EMAIL PROTECTED] KM> Sent: Thursday, March 10, 2005 10:14 PM KM> To: Ross Hulford KM> Cc: php-general@lists.php.net KM> Subject: Re: [PHP] incrementing a numbe

RE: [PHP] incrementing a number from a text file

2005-03-11 Thread Richard Lynch
, 2005 3:14 PM > To: Ross Hulford > Cc: php-general@lists.php.net > Subject: Re: [PHP] incrementing a number from a text file > >> I want to read a number from an external (txt) file and increment >> it.then save the number back on the text file. >> I know this is possible but

Re: [PHP] incrementing a number from a text file

2005-03-11 Thread Jason Barnett
Luis TQM Ariceaga wrote: > Is it possible to let the OS handle the collisions? > > For example: > > $last_value = system('cat counter.txt', $retval); > $last_value++; > $result = system('echo $last_value > counter.txt', $retval); > > just a suggestion! > Luis: if the OS handled the read/write

Re: [PHP] incrementing a number from a text file

2005-03-11 Thread Ross Hulford
2005 10:14 PM To: Ross Hulford Cc: php-general@lists.php.net Subject: Re: [PHP] incrementing a number from a text file >> I want to read a number from an external (txt) file and increment it.then >> save the number back on the text file. >> I know this is possible but want a si

RE: [PHP] incrementing a number from a text file

2005-03-11 Thread Ariceaga, Luis TQM
rd Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 3:14 PM To: Ross Hulford Cc: php-general@lists.php.net Subject: Re: [PHP] incrementing a number from a text file > I want to read a number from an external (txt) file and increment > it.then save the number back on the text fi

Re: [PHP] incrementing a number from a text file

2005-03-11 Thread Steve Buehler
At 03:14 PM 3/10/2005, Richard Lynch wrote: > I want to read a number from an external (txt) file and increment it.then > save the number back on the text file. > I know this is possible but want a simple amd economical way to do this. That's what you *THINK* you want to do :-) But what happens whe

RE: [PHP] incrementing a number from a text file

2005-03-11 Thread Kim Madsen
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 10:14 PM To: Ross Hulford Cc: php-general@lists.php.net Subject: Re: [PHP] incrementing a number from a text file >> I want to read a number from an external (txt) file and increment i

Re: [PHP] incrementing a number from a text file

2005-03-10 Thread Richard Lynch
> I want to read a number from an external (txt) file and increment it.then > save the number back on the text file. > I know this is possible but want a simple amd economical way to do this. That's what you *THINK* you want to do :-) But what happens when *TWO* users hit that same script at exac

[PHP] incrementing a number from a text file

2005-03-09 Thread Ross Hulford
I want to read a number from an external (txt) file and increment it.then save the number back on the text file. I know this is possible but want a simple amd economical way to do this. Thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u