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

2007-07-03 Thread Nathan Nobbe
On 7/3/07, Darren Whitlen <[EMAIL PROTECTED]> wrote: One is compiled, and for desktop software... actually the last 2 revisions of delphi are based on the .net framework, and as such there is support for ASP.NET -nathan On 7/3/07, Darren Whitlen <[EMAIL PROTECTED]> wrote: Dan wrote: > I'm lo

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Richard Lynch
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 one... > > > $x = rand( 1, 20 ); > for( $i = 0; $i < $

Re: [PHP] mail function problem

2007-07-03 Thread web2
Daniel Brown a écrit : On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Daniel Brown a écrit : > On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> I've already checked : >> >> - the mail logs : no mail send >> >> - and the apache error and access logs : nothing except this : >> >

Re: [PHP] Disadvantages of output buffering

2007-07-03 Thread Richard Lynch
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 output is all buffered up. [innocent voice] Not that that has ever happ

Re: [PHP] Create .php file with php

2007-07-03 Thread Richard Lynch
On Mon, June 25, 2007 7:13 pm, Marius Toma wrote: > I can not create .php files from PHP. I can save them as *.php5, > *.php3, > asp, *.txt , etc... but not as .php. I tried both touch and fopen but > none of them worked. > > I'm running PHP 5.1.6 on Apache 2, safe_mode is off > > Is this a securit

Re: [PHP] Disadvantages of output buffering

2007-07-03 Thread Richard Lynch
On Tue, June 26, 2007 7:33 am, Emil Edeholt wrote: > My php project would get a much cleaner code if I could set cookies > anywhere in the code. So I thought of output buffering. But I can't > find > any articles on the cons of output buffering. I mean it most be a > reason > for it being off by d

Re: [PHP] simple OCR in php

2007-07-03 Thread Andrei
Richard Lynch wrote: > On Sat, June 30, 2007 12:12 pm, Jay Blanchard wrote: > >> [snip] >> >>> In short PHP cannot perform OCR functions. >>> >> Why? PHP provides all requisite functions/features so if someone was >> sadistic enough and talented enough there's nothing to stop them >>

[PHP] how PHP is batter?

2007-07-03 Thread Muhammad Hassan Samee
ASP.net VS PHP? how PHP is batter?

Re: [PHP] how PHP is batter?

2007-07-03 Thread Tobias Zander
batter like batman? Muhammad Hassan Samee schrieb: ASP.net VS PHP? how PHP is batter? -- 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 Andrei
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how PHP is batter?

2007-07-03 Thread Colin Guthrie
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 batter you, ya wee radge" :p) To answer the question tho', it's really down

Re: [PHP] calling parent class method from the outside

2007-07-03 Thread Jochem Maas
admin wrote: > Jochem Maas wrote: ... >> >> the 'callback' type has a number of forms: >> >> 'myFunc' >> array('className', 'myMeth') >> array(self, 'myMeth') >> array(parent, 'myMeth') >> array($object, 'myMeth') >> >> self and parent adhere to the same 'context' rules when used in >> call_user_

Re: [PHP] calling parent class method from the outside

2007-07-03 Thread admin
Jochem Maas wrote: admin wrote: Jochem Maas wrote: ... the 'callback' type has a number of forms: 'myFunc' array('className', 'myMeth') array(self, 'myMeth') array(parent, 'myMeth') array($object, 'myMeth') self and parent adhere to the same 'context' rules when used in call_user_func*() a

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

2007-07-03 Thread Richard Heyes
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 batter you, ya wee radge" :p) "radge" ? What's that in

[PHP] Calendar booking form in PHP/MySQL

2007-07-03 Thread Timothy Murphy
I'm looking for a PHP/MySQL "calendar booking form", which I am sure must have been done a million times. This will show a calendar on the web mirroring a MySQL table. Each entry in the MySQL table will show two dates, Start and End. The dates between these should be shown in red on the calendar.

[PHP] Re: how PHP is batter?

2007-07-03 Thread Colin Guthrie
Richard Heyes wrote: > 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 batter you, ya

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

2007-07-03 Thread George Pitcher
Colin, > Either phrase can be a good or a bad thing, it all depends on tone - > Scottish is very like Japanese in that respect :p > Nips are good, but drams are better! George -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: implementation of guest book

2007-07-03 Thread Joker7
In news: [EMAIL PROTECTED] - Shiv Prakash wrote : >> Sir, >> >> I have implemented the guest book in web site successfully and its >> working also without any problem but administration side is asking >> for ID and Password, my request is how do I get that because I have >> tried my level best to

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

2007-07-03 Thread Jochem Maas
Colin Guthrie wrote: > Richard Heyes wrote: >> 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 - >

[PHP] task Scheduler driving me crazy!

2007-07-03 Thread Jason Pruim
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 to add away to

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

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 15:08 +0200, Jochem Maas wrote: > > with regard to php v. asp.net - does asp.net have such a funny mailing list? > ;-) Probably not... you need to start with a sense of humour :) Cheers, Rob. -- .. | InterJinn App

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 09:30 -0400, Jason Pruim wrote: > Hi Everyone! > > Here is some of the code: > > $result = mysql_query($sql); > echo ""; > echo ""; > echo " > ID # > Tickler Name > Tickler Description > Completed > Day to complete > Reschedule Date > "; > > while($row = mysql_fetch_array($

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

2007-07-03 Thread Stut
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 like that or know of one? - Dan There's a HUGE list o

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Jason Pruim
On Jul 3, 2007, at 9:47 AM, Robert Cummings wrote: On Tue, 2007-07-03 at 09:30 -0400, Jason Pruim wrote: Hi Everyone! Here is some of the code: $result = mysql_query($sql); echo ""; echo ""; echo " ID # Tickler Name Tickler Description Completed Day to complete Reschedule Date "; while($ro

Re: [PHP] how PHP is batter?

2007-07-03 Thread Stut
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 for a nice IDE, Visual Studio

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 09:52 -0400, Jason Pruim wrote: > On Jul 3, 2007, at 9:47 AM, Robert Cummings wrote: > > > On Tue, 2007-07-03 at 09:30 -0400, Jason Pruim wrote: > >> Hi Everyone! > >> > >> Here is some of the code: > >> > >> $result = mysql_query($sql); > >> echo ""; > >> echo ""; > >> echo

Re: [PHP] how PHP is batter?

2007-07-03 Thread Robert Cummings
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 t

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Jason Pruim
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 me nauseous as I remember the original trip. I guess you could call it naustalgia! >

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Andrei
Jason Pruim wrote: > > On Jul 3, 2007, at 9:47 AM, Robert Cummings wrote: > >> On Tue, 2007-07-03 at 09:30 -0400, Jason Pruim wrote: >>> Hi Everyone! >>> >>> Here is some of the code: >>> >>> $result = mysql_query($sql); >>> echo ""; >>> echo ""; >>> echo " >>> ID # >>> Tickler Name >>> Tickler De

[PHP] Re: how PHP is batter?

2007-07-03 Thread Colin Guthrie
Jochem Maas wrote: > with regard to batter - isn't it the scots that have pechant for covering > marsbars with the stuff and deepfrying them? Hehe yeah we do have a reputation for that tho' I only know of one place in my city where they will do that for you as it can mess up your frying oil appare

Re: [PHP] how PHP is batter?

2007-07-03 Thread John Meyer
Muhammad Hassan Samee wrote: > ASP.net VS PHP? > > how PHP is batter? > Without context that question is meaningless and only serves as troll bait. -- 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 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

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] 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] 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] 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] 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 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] 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: 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

[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: [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

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, 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] 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, 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: $

[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 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

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] 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] 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] 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] 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 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 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] 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 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] 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] 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 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

[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] 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

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

[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

[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'.

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
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 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

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

[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] 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() > >> {

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 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] 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 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] 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 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] 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 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] 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 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: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

  1   2   >