Re: [PHP] Problem extending mysqli - No database connected

2007-07-03 Thread Richard Lynch
Somewhere in that mess there should be something to do a mysqli_select_db() to choose WHICH database to use... Where it's supposed to be in the mess of OOP layers you're wrapped around yourself, god only knows. On Fri, June 29, 2007 12:31 pm, Lee PHP wrote: Hi, I have a class that extends

RE: [PHP] simple OCR in php

2007-07-03 Thread Richard Lynch
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 writing an OCR app using it. [/snip] Sure, but

RE: [PHP] simple OCR in php

2007-07-03 Thread Richard Lynch
On Sat, June 30, 2007 12:36 pm, Robert Cummings wrote: It was JUST as complex the first time someone did it in C, or Java, or what have your for a chosen language. No, it was more complex, because it wasn't PHP. :-) -- Some people have a gift link here. Know what I want? I want you to buy a

RE: [PHP] simple OCR in php

2007-07-03 Thread Robert Cummings
On Tue, 2007-07-03 at 01:03 -0500, Richard Lynch wrote: On Sat, June 30, 2007 12:36 pm, Robert Cummings wrote: It was JUST as complex the first time someone did it in C, or Java, or what have your for a chosen language. No, it was more complex, because it wasn't PHP. :-) Good point :)

Re: [PHP] shuffle or mt_rand

2007-07-03 Thread Richard Lynch
On Fri, June 29, 2007 4:57 am, Ryan A wrote: Have a quick question about which is better to get real random values, shuffle or mt_rand. I *thought* that shuffle used mt_rand under the hood, but could be totally wrong... As far as REAL random values goes, that's an encyclopedia of information,

Re: [PHP] Include images in php file

2007-07-03 Thread Richard Lynch
On Thu, June 28, 2007 8:39 am, Marek wrote: It's not really a limitation but a personal goal. I develop a small public script that is meant to be very compact and portable. All of its functionality fits nicely in one php file. But at the moment it requires a bunch of tiny icons. I would like

Re: [PHP] strange include path error

2007-07-03 Thread Richard Lynch
WILD GUESS!!! A rogue Apache child didn't get killed when you shut down Apache?... On Wed, June 27, 2007 6:59 pm, brian wrote: PHP 5.1.4 on Fedora 2 I recieved a note from a client about a problem with their site today. Looking at the error log, i found that the DB connection script that's

Re: [PHP] Swear filter ideas

2007-07-03 Thread Richard Lynch
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 bad words, or just error back to the user? (I

Re: [PHP] Bit-size of machine

2007-07-03 Thread Richard Lynch
On Wed, June 27, 2007 10:53 am, Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type MAYBE: ?php if (0x + 1 0x){ echo 64-bit; } else{ echo 32-bit; } ? -- Some people have a gift link

Re: [PHP] leaving UA trace when getting XML from URI

2007-07-03 Thread Richard Lynch
On Wed, June 27, 2007 7:09 am, [EMAIL PROTECTED] wrote: i wrote a small RSS reader using file_get_contents to get the XML from the URI - however i noticed that this does not leave trace (User Agent) in the remote server logs. is there a way in PHP to get XML from URI and leave UA trace in

[PHP] Re: PHP vs Delphi Comparison?

2007-07-03 Thread Darren Whitlen
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 of differences, as they

Re: [PHP] Re: help curl followlocation

2007-07-03 Thread Richard Lynch
When your PHP script does curl it does not interact in any way, shape, or form with the Location bar of the browser... That's kinda the whole POINT of curl, to be able to snarf down content from inside your script, instead of pushing the user off to some other site. If you just want to send the

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

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... ?php $x = rand( 1, 20 ); for( $i = 0; $i $x; $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 : 192.168.0.1 - -

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

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 security

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

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 writing an OCR

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

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_func*() as when you

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*()

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 wee radge :p)

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 find it in

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 - e.g. I'll batter you, ya

[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

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 form method='POST' action='update.php' name='ticklers'; echo table border='1' bgcolor=.$tableBody. ; echo tr THID #/TH thTickler Name/th thTickler

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

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 form method='POST' action='update.php' name='ticklers'; echo table border='1' bgcolor=.$tableBody. ; echo tr THID

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

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 form method='POST' action='update.php'

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 to develop ASP.net

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 form method='POST' action='update.php' name='ticklers'; echo table border='1'

[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

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 one... ?php

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 output

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

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

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

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 me nauseous as I

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 you don't need to buy stuff to develop

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

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 you feel the need for a nice

[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

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 succeed

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.php.net/) To

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 think I have to

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 trigger my kid

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); } ? Well

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 batter you, ya wee

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: ?php class Thread { var $wheel; function Thread (){ $this-wheel = 'roun\''; } } while($wheel = new Thread()); ? The wheel goes roun and roun [sic] [/snip] if($x == 0.01 || $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:

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

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 values

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

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

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

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: 'td class='.$rowColor.'' ... if $rowColor is a hex based

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: ?php class Thread { var $wheel; function Thread (){ $this-wheel = 'roun\''; } } while($wheel = new Thread()); ? The wheel goes

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

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's simplest:

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

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: $rowColor :) At it's

[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) . br /\n; } kvigor wrote: Need to remove all spaces from Array Values... And

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

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

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

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

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

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 stuff to develop in it. You have

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? . In short words it's not Micro$oft and

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/

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

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 sunday, i get

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)) { ? TR TD bgcolor=?=$rowColor?ID#, ?=$row[0]?/td td

[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 you feel the need for a nice

[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'. Here's another

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

[PHP] Re: PHP Brain Teasers

2007-07-03 Thread Colin Guthrie
Daniel Brown wrote: Ahh well, how about this: ?php abstract class wood { protected function the() { } } class thetrees extends wood { public function foo() { } } $u = new thetrees(); $u-wood(); // Blerg If a tree falls in the woods, and no one is there to

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 this one: 'If at

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

  1   2   >