Re: [PHP] Re: how PHP is batter?

2007-07-03 Thread Andrew Hutchings
In article <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Chris) wrote: >>> Either phrase can be a good or a bad thing, it all depends on >>> tone - Scottish is very like Japanese in that respect :p >> >> with regard to batter - isn't it the scots that have pechant for >> covering marsbars with the

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-03 Thread Jim Lucas
kvigor wrote: Jim, Thanks for all you help. Tell me where to mail you the check "seriously". If we get this right I'll owe you. OK, the query string now looks like you said it would. However Query isn't returning a match. //DETAILS=

Re: [PHP] Re: developer seeking document writer

2007-07-03 Thread adel
On 7/4/07, Jochem Maas <[EMAIL PROTECTED]> wrote: adel wrote: > hello? why am not getting any reply!? because nobody really wants to write documentation? not even for their own stuff, let alone someone else's. the lack of reply suggests no one is interested - this is not uncommon - it's very ha

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-03 Thread Chris
kvigor wrote: Jim, Thanks for all you help. Tell me where to mail you the check "seriously". If we get this right I'll owe you. OK, the query string now looks like you said it would. However Query isn't returning a match. //DETAILS=

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-03 Thread kvigor
Jim, Thanks for all you help. Tell me where to mail you the check "seriously". If we get this right I'll owe you. OK, the query string now looks like you said it would. However Query isn't returning a match. //DETAILS= My $list array lo

Re: [PHP] Re: developer seeking document writer

2007-07-03 Thread Jochem Maas
adel wrote: > hello? why am not getting any reply!? because nobody really wants to write documentation? not even for their own stuff, let alone someone else's. the lack of reply suggests no one is interested - this is not uncommon - it's very hard to get people interested in a project even when i

Re: [PHP] Re: how PHP is batter?

2007-07-03 Thread Robert Cummings
On Wed, 2007-07-04 at 11:44 +1000, Chris wrote: > Robert Cummings wrote: > > On Wed, 2007-07-04 at 11:15 +1000, Chris wrote: > Either phrase can be a good or a bad thing, it all depends on tone - > Scottish is very like Japanese in that respect :p > >>> with regard to batter - isn't it th

Re: [PHP] Re: how PHP is batter?

2007-07-03 Thread Chris
Robert Cummings wrote: On Wed, 2007-07-04 at 11:15 +1000, Chris wrote: Either phrase can be a good or a bad thing, it all depends on tone - Scottish is very like Japanese in that respect :p with regard to batter - isn't it the scots that have pechant for covering marsbars with the stuff and dee

Re: [PHP] Re: how PHP is batter?

2007-07-03 Thread Robert Cummings
On Wed, 2007-07-04 at 11:15 +1000, Chris wrote: > >> Either phrase can be a good or a bad thing, it all depends on tone - > >> Scottish is very like Japanese in that respect :p > > > > with regard to batter - isn't it the scots that have pechant for covering > > marsbars with the stuff and deepfry

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 18:09 -0400, Daniel Brown wrote: > > "The first thing we do, let's kill all the lawyers." Let's wait a few more years, I like my soilent green fresh. Cheers, Rob. -- .. | InterJinn Application Framework - http:

Re: [PHP] Re: how PHP is batter?

2007-07-03 Thread Chris
Either phrase can be a good or a bad thing, it all depends on tone - Scottish is very like Japanese in that respect :p with regard to batter - isn't it the scots that have pechant for covering marsbars with the stuff and deepfrying them? The aussies do it too - are we just as crazy as the sc

Re: [PHP] mail function problem

2007-07-03 Thread Chris
Try this: Note Same result : "NOK /usr/lib/sendmail -t -i" I think the problem is not in the test script. Is that the right path? Normally it's /usr/sbin/sendmail not /usr/lib . -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.ne

Re: [PHP] looking for a good gateway - php

2007-07-03 Thread Dan
Wikipedia has a pretty good list of common well known Gateways. http://en.wikipedia.org/wiki/Payment_gateway Which you pick really depends on your specific needs and what features you need. Also you should spend time researching one before you finally go with it to make sure it's trustworthy.

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Jochem Maas
Jochem Maas wrote: > three for the price of one, cheap at half the price ... > > for ($me = 1; $you = $me; $me++); > > > > $u = create_function("\$bond", "if (\$bond < 2) echo \"live\"; else die();") > $u();$u();$u(); this one here should have been: $u = create_function("\$bon

Re: [PHP] Removing Spaces from Array Values

2007-07-03 Thread Arpad Ray
Jim Lucas wrote: foreach ( $someArray AS $k => $v ) { $someArray[$k] = preg_replace('!\s!', '', $v);// Removes white space ' ', \n, \r\n, etc... $someArray[$k] = str_replace(' ', '', $v);// Removes only spaces } str_replace() also operates on arrays so there's no need for

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Stut
Daniel Brown wrote: On 7/3/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] > Another...(way easy) Y'think? Heh. > $one = "six"; > $other = "half-dozen"; [/snip] function esquireEliminate($x){ unset($x); } $lawyers = 10; for($i = 0; $i < $lawyers; $i++){ eliminateE

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] > Another...(way easy) Y'think? Heh. > $one = "six"; > $other = "half-dozen"; [/snip] function esquireEliminate($x){ unset($x); } $lawyers = 10; for($i = 0; $i < $lawyers; $i++){ eliminateEsquire($i); } Shakes

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread Jay Blanchard
[snip] > Another...(way easy) Y'think? Heh. > $one = "six"; > $other = "half-dozen"; [/snip] function esquireEliminate($x){ unset($x); } $lawyers = 10; for($i = 0; $i < $lawyers; $i++){ eliminateEsquire($i); } Shakespeare has his day in code! -- PHP General Mailing Lis

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] if (goose($its)) { $gander = $its; } [/snip] What's good for the goose is good for the gander. [snip] for ($things = 1; $things > 0; $things++) { for ($x = 0; $x < $things; $x++) { $they = "the same"; } } [/snip]

[PHP] PHP Courses in India

2007-07-03 Thread OOzy Pal
I would like to take PHP courses (intermediate to Advance) in India. Can someone recommend a good institute anywhere in India? -- OOzy Ubuntu-Feisty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread Jay Blanchard
[snip] if (goose($its)) { $gander = $its; } [/snip] What's good for the goose is good for the gander. [snip] for ($things = 1; $things > 0; $things++) { for ($x = 0; $x < $things; $x++) { $they = "the same"; } } [/snip] The more things change the more they stay the

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread John
My two bits... if (goose($its)) { $gander = $its; } -and- for ($things = 1; $things > 0; $things++) { for ($x = 0; $x < $things; $x++) { $they = "the same"; } } John > -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Tuesday

[PHP] Re: developer seeking document writer

2007-07-03 Thread adel
hello? why am not getting any reply!? On 7/1/07, adel <[EMAIL PROTECTED]> wrote: hi I wrote php 5 framework, not trying to do everything or add layers of complexing to what php already do easy, this framework has few objects that helps me doing commonly tasks easily like generating valid HTML,

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: Another...(way easy) Y'think? Heh. $one = "six"; $other = "half-dozen"; -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread Jay Blanchard
[snip] In for a penny, in for a pound. Metric, that is! Correct! [/snip] Another...(way easy) $one = "six"; $other = "half-dozen"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Jochem Maas
three for the price of one, cheap at half the price ... for ($me = 1; $you = $me; $me++); $u = create_function("\$bond", "if (\$bond < 2) echo \"live\"; else die();") $u();$u();$u(); $I = null; sleep(10); $I = rear(); function rear() {}; -- PHP General Maili

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 21:26 +0100, David Restall - System Administrator wrote: > Hi, > > there are two in this one :- > > function Cat($Danger = "") > { > static int $Lives = 9; > > if (preg_match("/^curiosity$/i", $Danger)) > die("Cat Killed"); > > $Threat

[PHP] Re: PHP Brain Teasers

2007-07-03 Thread David Restall - System Administrator
Hi, there are two in this one :- function Cat($Danger = "") { static int $Lives = 9; if (preg_match("/^curiosity$/i", $Danger)) die("Cat Killed"); $Threats = array("dog", "flu", "fall", "drowning"); if (in_array(strtolower($Danger), $Thre

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Tijnema
On 7/3/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] if($x == 0.01 || $x == 1.0){ $y = "in"; } [/snip] Anyone? Hint? ;) Tijnema -- Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Re: PHP vs Delphi Comparison?

2007-07-03 Thread Nathan Nobbe
On 7/3/07, Darren Scales <[EMAIL PROTECTED]> wrote: But unlike delphi, it just can't output a native GUI on each OS. Actually PHP has 3 bindings that i know of (which cover *nixes and windows) - php gtk - php-qt - windows bindings

[PHP] Re: PHP Brain Teasers

2007-07-03 Thread Colin Guthrie
Robert Cummings wrote: > Your hint was too good :) > > "Can't see the woods for the trees." :D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 21:54 +0200, Tijnema wrote: > On 7/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-07-03 at 21:41 +0200, Tijnema wrote: > > > On 7/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007-07-03 at 15:26 -0400, Robert Cummings wrote: > > > > > On

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Tijnema
On 7/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-07-03 at 21:41 +0200, Tijnema wrote: > On 7/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-07-03 at 15:26 -0400, Robert Cummings wrote: > > > On Tue, 2007-07-03 at 20:18 +0100, Colin Guthrie wrote: > > > > Jay B

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 21:41 +0200, Tijnema wrote: > On 7/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-07-03 at 15:26 -0400, Robert Cummings wrote: > > > On Tue, 2007-07-03 at 20:18 +0100, Colin Guthrie wrote: > > > > Jay Blanchard wrote: > > > > > [snip] > > > > > if($x == 0.01

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Jim Lucas
Colin Guthrie wrote: Robert Cummings wrote: On Tue, 2007-07-03 at 02:17 -0500, Richard Lynch wrote: On Tue, June 26, 2007 7:14 pm, Robert Cummings wrote: On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: I think I have to answer to this one: 'If at first you don't succeed try, try again

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread Jay Blanchard
[snip] At 7/3/2007 12:11 PM, Jay Blanchard wrote: >[snip] >if($x == 0.01 || $x == 1.0){ >$y = "in"; >} >[/snip] In for a penny, in for a pound. Metric, that is! [/snip] Correct! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: Jay Blanchard wrote: > [snip] > if($x == 0.01 || $x == 1.0){ >$y = "in"; > } > [/snip] > > Anyone? I'm struggling. Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Dani

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Tijnema
On 7/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-07-03 at 15:26 -0400, Robert Cummings wrote: > On Tue, 2007-07-03 at 20:18 +0100, Colin Guthrie wrote: > > Jay Blanchard wrote: > > > [snip] > > > if($x == 0.01 || $x == 1.0){ > > >$y = "in"; > > > } > > > [/snip] > > > > > >

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 15:26 -0400, Robert Cummings wrote: > On Tue, 2007-07-03 at 20:18 +0100, Colin Guthrie wrote: > > Jay Blanchard wrote: > > > [snip] > > > if($x == 0.01 || $x == 1.0){ > > >$y = "in"; > > > } > > > [/snip] > > > > > > Anyone? > > > > > > I'm struggling. > > I'm not

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread Paul Novitski
At 7/3/2007 12:11 PM, Jay Blanchard wrote: [snip] if($x == 0.01 || $x == 1.0){ $y = "in"; } [/snip] In for a penny, in for a pound. Metric, that is! Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (ht

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 7/3/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > Jay Blanchard wrote: > > [snip] > > if($x == 0.01 || $x == 1.0){ > >$y = "in"; > > } > > [/snip] > > > > Anyone? > > > I'm struggling. > > Col > > -- > PHP General Mailing List (http:/

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 20:18 +0100, Colin Guthrie wrote: > Jay Blanchard wrote: > > [snip] > > if($x == 0.01 || $x == 1.0){ > >$y = "in"; > > } > > [/snip] > > > > Anyone? > > > I'm struggling. I'm not getting any lightbulbs either :/ Cheers, Rob. -- .--

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 20:00 +0100, Colin Guthrie wrote: > Daniel Brown wrote: > >> Ahh well, how about this: > >> > >> >> > >> abstract class wood > >> { > >> protected function the() > >> { > >> > >> } > >> } > >> > >> class thetrees extends wood > >> { > >> public function foo() > >> {

[PHP] Re: PHP Brain Teasers

2007-07-03 Thread Colin Guthrie
Jay Blanchard wrote: > [snip] > if($x == 0.01 || $x == 1.0){ >$y = "in"; > } > [/snip] > > Anyone? I'm struggling. Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread Jay Blanchard
[snip] if($x == 0.01 || $x == 1.0){ $y = "in"; } [/snip] Anyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 19:54 +0100, Colin Guthrie wrote: > Robert Cummings wrote: > > On Tue, 2007-07-03 at 02:17 -0500, Richard Lynch wrote: > >> On Tue, June 26, 2007 7:14 pm, Robert Cummings wrote: > >>> On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: > I think I have to answer to th

[PHP] Re: PHP Brain Teasers

2007-07-03 Thread Colin Guthrie
Daniel Brown wrote: >> Ahh well, how about this: >> >> > >> abstract class wood >> { >> protected function the() >> { >> >> } >> } >> >> class thetrees extends wood >> { >> public function foo() >> { >> } >> } >> >> >> $u = new thetrees(); >> $u->wood(); // Blerg >> >"If a tree fall

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: Robert Cummings wrote: > On Tue, 2007-07-03 at 02:17 -0500, Richard Lynch wrote: >> On Tue, June 26, 2007 7:14 pm, Robert Cummings wrote: >>> On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: I think I have to answer to this one: 'If

[PHP] Re: PHP Brain Teasers

2007-07-03 Thread Colin Guthrie
Robert Cummings wrote: > On Tue, 2007-07-03 at 02:17 -0500, Richard Lynch wrote: >> On Tue, June 26, 2007 7:14 pm, Robert Cummings wrote: >>> On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: I think I have to answer to this one: 'If at first you don't succeed try, try again'.

[PHP] Re: how PHP is batter?

2007-07-03 Thread Colin Guthrie
Stut wrote: > Andrei wrote: >> Muhammad Hassan Samee wrote: >>> ASP.net VS PHP? >>> >>> how PHP is batter? >>> >>> . >>> >> In short words it's not Micro$oft and you don't need to buy stuff to >> develop in it. > > You have never needed to buy anything to develop ASP.net applications. > > And if

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread tedd
At 5:05 PM +0300 7/3/07, Andrei wrote: Anyway you should get rid of echoing everything from php... It really gets you mad when you want to change things... while($row = mysql_fetch_array($result)) { ?> ID#, TicklerName, etc... Andrei: Well don't -- use css instead

Re: [PHP] getting timestamp for first day of current week

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 20:19 +0200, Olav Mørkrid wrote: > hello > > how do i get the TIMESTAMP for the FIRST DAY of the CURRENT WEEK (ie. > monday 00:00:00)? > > i tried using strtotime("monday"), but: > > - when i use it on a monday, i get monday THIS WEEK > - when i use it on tuesday thru sunda

[PHP] getting timestamp for first day of current week

2007-07-03 Thread Olav Mørkrid
hello how do i get the TIMESTAMP for the FIRST DAY of the CURRENT WEEK (ie. monday 00:00:00)? i tried using strtotime("monday"), but: - when i use it on a monday, i get monday THIS WEEK - when i use it on tuesday thru sunday, i get monday NEXT WEEK i tried "last monday", "monday this week", "t

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Jason Pruim
I'm matching a color coding scheme that was already established :P But the red on yellow is a little bright ;) On Jul 3, 2007, at 2:08 PM, Robert Cummings wrote: On Tue, 2007-07-03 at 13:18 -0400, Jason Pruim wrote: And for anyone that is interested: HTTP://www.raoset.com/tests/ ticklers/vi

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread Jay Blanchard
[snip] Ok, I'll play. Phrase: one = rand(1,100); [/snip] One in a million. Still waiting to see if who gets the last one I posted. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 13:18 -0400, Jason Pruim wrote: > > And for anyone that is interested: HTTP://www.raoset.com/tests/ > ticklers/viewall.php <-- That's the output of the form :) Please > don't abuse it! :) My eyes are bleeding... gh. :) Cheers, Rob. -- .-

Re: [PHP] how PHP is batter?

2007-07-03 Thread Jim Lucas
Edward Vermillion wrote: On Jul 3, 2007, at 8:52 AM, Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in it. You have never needed to buy anything to develop ASP.net

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread tedd
Ok, I'll play. Phrase: one = rand(1,100); Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how PHP is batter?

2007-07-03 Thread Tijnema
On 7/3/07, Edward Vermillion <[EMAIL PROTECTED]> wrote: On Jul 3, 2007, at 12:35 PM, Jim Lucas wrote: > Edward Vermillion wrote: >> On Jul 3, 2007, at 8:52 AM, Stut wrote: >>> Andrei wrote: Muhammad Hassan Samee wrote: > ASP.net VS PHP? > > how PHP is batter? > > .

Re: [PHP] how PHP is batter?

2007-07-03 Thread Tijnema
On 7/3/07, Stut <[EMAIL PROTECTED]> wrote: Edward Vermillion wrote: > > On Jul 3, 2007, at 8:52 AM, Stut wrote: > >> Andrei wrote: >>> Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . >>> In short words it's not Micro$oft and you don't need to buy st

Re: [PHP] how PHP is batter?

2007-07-03 Thread tedd
At 7:36 AM -0600 7/3/07, John Meyer wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? Without context that question is meaningless and only serves as troll bait. H, batter as bait -- that's an idea. Cheers, tedd -- --- http://sperling.com http://ancientsto

Re: [PHP] how PHP is batter?

2007-07-03 Thread Edward Vermillion
On Jul 3, 2007, at 12:35 PM, Jim Lucas wrote: Edward Vermillion wrote: On Jul 3, 2007, at 8:52 AM, Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in it. You have

Re: [PHP] Swear filter ideas

2007-07-03 Thread tedd
At 1:32 AM -0500 7/3/07, Richard Lynch wrote: On Wed, June 27, 2007 5:18 pm, Richard Davey wrote: How do you go about implementing a swear / bad-word filter in PHP? Reasons for needing one aside, I'm just wondering if you favour a regexp, a substr_count, or what? Do you like to *** out the b

Re: [PHP] Removing Spaces from Array Values

2007-07-03 Thread Jim Lucas
kvigor wrote: Need to remove all spaces from Array Values... And this doesn't work. Are we talking spaces ' ' or all white space? This may include a tab, space, new line, etc... This is similar info that's within array values: $someArray[0] = "PHP is awesome";s/b PHPisawesome This is s

Re: [PHP] how PHP is batter?

2007-07-03 Thread tedd
At 3:53 PM +0500 7/3/07, Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? You take a little flour, milk, egg and mix. Liberally coat the php and then fry. It taste much better than asp and you don't have to risk your life chasing it down. Cheers, tedd -- --- http://spe

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Jason Pruim
On Jul 3, 2007, at 12:46 PM, Jochem Maas wrote: Robert Cummings wrote: On Tue, 2007-07-03 at 17:57 +0200, Jochem Maas wrote: Robert Cummings wrote: ... I'll add the CSS once I can get the form to work properly, and can figure out how to change the color with css based on a certain value

[PHP] Re: Removing Spaces from Array Values

2007-07-03 Thread Al
foreach() is your friend for this type of operation. foreach($someArray as $value){ $new_array[]= str_replace(' ','', $value); } OR foreach($someArray as $value){ echo str_replace(' ','', $value) . "\n"; } kvigor wrote: Need to remove all spaces from Array Values... And this

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Jochem Maas
Robert Cummings wrote: > On Tue, 2007-07-03 at 17:57 +0200, Jochem Maas wrote: >> Robert Cummings wrote: >> >> ... >> I'll add the CSS once I can get the form to work properly, and can figure out how to change the color with css based on a certain value stored in a database IE: $

Re: [PHP] how PHP is batter?

2007-07-03 Thread Stut
Edward Vermillion wrote: On Jul 3, 2007, at 8:52 AM, Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in it. You have never needed to buy anything to develop ASP.net

Re: [PHP] how PHP is batter?

2007-07-03 Thread Adam Schroeder
This is an important debate and I would hope to see a more lively discussion. Many of us have to validate our choices and our employers don't care about anti-microsoft and anti-corporation arguments (I do believe the open-source versus closed-source argument is a valid one to make to your emp

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread Jay Blanchard
[snip] > if($x == 0.01 || $x == 1.0){ > $y = "in"; > } > > > "One in a thousand" ? [/snip] Nope. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 17:57 +0200, Jochem Maas wrote: > Robert Cummings wrote: > > ... > > >> I'll add the CSS once I can get the form to work properly, and can > >> figure out how to change the color with css based on a certain value > >> stored in a database IE: $rowColor :) > > > > At it'

Re: [PHP] how PHP is batter?

2007-07-03 Thread Andrei
Stut wrote: > Andrei wrote: >> I saw there is a free version of Studio, but I think it's for >> students... You cannot go build a corporate project with it I think... > > More FUD. Go read the licence before claiming to know what it says! > > -Stut > I said *I think* didn't know for sure. And any

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] > > So I'll double-whammy it with a "Name That Tune" factor: > > > > > class Thread { > > var $wheel; > > function Thread (){ > >$this->wheel = 'roun\''; > > } > > } > > while($wheel = new Thread()); > > ?>

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Jochem Maas
Robert Cummings wrote: ... >> I'll add the CSS once I can get the form to work properly, and can >> figure out how to change the color with css based on a certain value >> stored in a database IE: $rowColor :) > > At it's simplest: > > '' ... if $rowColor is a hex based value using it

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Jim Lucas
Jason Pruim wrote: Hi Everyone! Okay, so for those of you who remember I have been going back and forth on how to write a reoccuring task manager program for my office, it's a little bit a labor of love, little bit wanting to expand my knowledge. Anyway, I've hit a problem... I am attempting

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] > if($x == 0.01 || $x == 1.0){ > $y = "in"; > } > > > "One in a thousand" ? [/snip] Nope. Yes it is, you just don't know it yet. ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- P

Re: [PHP] how PHP is batter?

2007-07-03 Thread Edward Vermillion
On Jul 3, 2007, at 8:52 AM, Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in it. You have never needed to buy anything to develop ASP.net applications. Ummm... W

Re: [PHP] looking for a good gateway - php

2007-07-03 Thread Lester Caine
Ross wrote: Worldpay is far too expensive.I am looking for a good gateway that. -has a good php/linux sdk -easy to integrate -does not open new windows with the gateways logo all over the place but is contained on my site - has good rates - does not take ages to get the cash from your account

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-03 Thread Jim Lucas
kvigor wrote: Ok Jim, This is what I have so far and I'm still working it out. $in_list = "".join('',$someArrayList); // do I really need to concatenate it needs to be $in_list = "'".join("','",$someArrayList)."'"; // you need the quotes!! or separate anything here since my array v

Re: [PHP] how PHP is batter?

2007-07-03 Thread Stut
Andrei wrote: Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in it. You have never needed to buy anything to develop ASP.net applications. And if you feel the need fo

Re: [PHP] how PHP is batter?

2007-07-03 Thread Jon Anderson
Andrei wrote: I saw there is a free version of Studio, but I think it's for students... You cannot go build a corporate project with it I think... They're just "designed" for students and hobbyists (i.e. they stipped out the cool stuff), but you can use 'em for whatever. From the faq: ht

RE: [PHP] PHP Brain Teasers

2007-07-03 Thread Jay Blanchard
[snip] > > So I'll double-whammy it with a "Name That Tune" factor: > > > > > class Thread { > > var $wheel; > > function Thread (){ > >$this->wheel = 'roun\''; > > } > > } > > while($wheel = new Thread()); > > ?> "The wheel goes roun and roun" [sic] [/snip] if($x

Re: [PHP] looking for a good gateway - php

2007-07-03 Thread Daniel Brown
On 7/3/07, Ross <[EMAIL PROTECTED]> wrote: Hi All, Worldpay is far too expensive.I am looking for a good gateway that. -has a good php/linux sdk -easy to integrate -does not open new windows with the gateways logo all over the place but is contained on my site - has good rates - does not take

Re: [PHP] Re: how PHP is batter?

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 12:10 +0100, Colin Guthrie wrote: > Muhammad Hassan Samee wrote: > > ASP.net VS PHP? > > > > how PHP is batter? > > I think you mean "Why is PHP better?" :p (batter is what you make > pancakes out of, or if you are in Scotland it's means to get beaten up - > e.g. "I'll batte

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-07-03 at 10:36 -0400, Daniel Brown wrote: > > > A similar one: > > function sing($ignore) { > echo "It's a song!\n"; > } > > (float) $bus; > $bus = 14.750; > while($wheels = round($bus,2)) { > sing($wheels); >

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 10:36 -0400, Daniel Brown wrote: > > > A similar one: > > function sing($ignore) { > echo "It's a song!\n"; > } > > (float) $bus; > $bus = 14.750; > while($wheels = round($bus,2)) { > sing($wheels); > } > ?> Well when you say it like that... you trigge

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 7/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-07-03 at 02:17 -0500, Richard Lynch wrote: > > > > On Tue, June 26, 2007 7:14 pm, Robert Cummings wrote: > > > On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: > > >> I t

Re: [PHP] how PHP is batter?

2007-07-03 Thread Jochem Maas
John Meyer wrote: > Muhammad Hassan Samee wrote: >> ASP.net VS PHP? >> >> how PHP is batter? >> > > Without context that question is meaningless and only serves as troll bait. do trolls eat deepfried marsbars by any chance? it would explain alot :-P > -- PHP General Mailing List (http://www.p

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Daniel Brown
On 7/3/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-07-03 at 02:17 -0500, Richard Lynch wrote: > > On Tue, June 26, 2007 7:14 pm, Robert Cummings wrote: > > On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: > >> I think I have to answer to this one: 'If at first you don't suc

[PHP] looking for a good gateway - php

2007-07-03 Thread Ross
Hi All, Worldpay is far too expensive.I am looking for a good gateway that. -has a good php/linux sdk -easy to integrate -does not open new windows with the gateways logo all over the place but is contained on my site - has good rates - does not take ages to get the cash from your account to yo

Re: Re: [PHP] how PHP is batter?

2007-07-03 Thread Andrei
Stut wrote: > Andrei wrote: >> Muhammad Hassan Samee wrote: >>> ASP.net VS PHP? >>> >>> how PHP is batter? >>> >>> . >>> >> In short words it's not Micro$oft and you don't need to buy stuff to >> develop in it. > > You have never needed to buy anything to develop ASP.net applications. > > And if y

Re: [PHP] Re: PHP vs Delphi Comparison?

2007-07-03 Thread Darren Scales
On 03/07/07, Stut <[EMAIL PROTECTED]> wrote: Darren Whitlen wrote: > Dan wrote: >> I'm looking for a way to introduce PHP to some Delphi programmers, so >> I thought a comparison would show them the major differences, but I >> can't find anything like that on the web. Anyone have an article lik

Re: [PHP] how PHP is batter?

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 15:07 +0100, Stut wrote: > Robert Cummings wrote: > > On Tue, 2007-07-03 at 14:52 +0100, Stut wrote: > >> Andrei wrote: > >>> Muhammad Hassan Samee wrote: > ASP.net VS PHP? > > how PHP is batter? > > . > > >>> In short words it's not Micro$oft and

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 10:06 -0400, Jason Pruim wrote: > On Jul 3, 2007, at 9:58 AM, Robert Cummings wrote: > > >>> > >>> Oh man, blast from the past... BLAST FROM THE PAST!!! Where did you > >>> dig > >>> up such ancient HTML? I'm taking a walk down nostalgia lane. > >>> Unfortunately it's making

Re: [PHP] how PHP is batter?

2007-07-03 Thread Stut
Robert Cummings wrote: On Tue, 2007-07-03 at 14:52 +0100, Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in it. You have never needed to buy anything to develop ASP.ne

RE: [PHP] how PHP is batter?

2007-07-03 Thread Jay Blanchard
[snip] ASP.net VS PHP? [/snip] The bottom line is that you must choose the best tool for the job. In other words your shouldn't drive a nail with a band saw. Each has their own strengths and weaknesses. IMHO the learning curve with PHP is much less steep and PHP code lends itself towards more eleg

Re: [PHP] Swear filter ideas

2007-07-03 Thread John Meyer
Richard Lynch wrote: > Don't. > > Trying to solve a social problem with software hacks never works out > well. > > :-) > > Taking the emotion out of this, if you wanted to catch any list of words (the Esperanto dictionary, the words to that last song that got ground into your head), how would y

Re: [PHP] Disadvantages of output buffering

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 02:23 -0500, Richard Lynch wrote: > On Tue, June 26, 2007 8:54 am, Robin Vickery wrote: > > CON: > > On a dev server, when you screw up and write an infinite loop, PHP > spends a hell of a lot more time spinning its wheels before you kill > it because your infinitely long ou

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 02:17 -0500, Richard Lynch wrote: > > On Tue, June 26, 2007 7:14 pm, Robert Cummings wrote: > > On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote: > >> I think I have to answer to this one: 'If at first you don't succeed > >> try, > >> try again'. > > > > Here's another

  1   2   >