Re: [PHP] crc check for JPEG file exists

2008-02-27 Thread Per Jessen
Olav Mørkrid wrote: is crc32() an acceptable way of managing whether a JPEG file exists (in a database or similar collection)? i mean doing a crc32() on the binary data of the JPEG file, and then check the database if there is already another entry with the same CRC. the database has

Re: [PHP] php-5.2.5 glibc detected *** free()

2008-02-27 Thread pmenier
Mario Guenterberg a écrit : On Sat, Feb 23, 2008 at 12:03:16PM +0100, [EMAIL PROTECTED] wrote: Hello all I got glibc detected errors about several php extensions on my debian box both by executing php-cgi or php-cli. Config: # cat /proc/version Linux version 2.6.24-rc7-vs2.2.0.5.0.7

Re: [PHP] How do you send stylized email?

2008-02-27 Thread Zoltán Németh
2008. 02. 26, kedd keltezéssel 11.27-kor Daniel Brown ezt írta: On Tue, Feb 26, 2008 at 10:57 AM, Robert Cummings [EMAIL PROTECTED] wrote: Marriage?? That's for backwards people stuck in ancient pointless traditions :) And moreso in today's culture... it's just a commercial suckfest when

[PHP] Cannot even come up with the beginning of a regex

2008-02-27 Thread Dotan Cohen
Hi all, it's been a while since I've written with a regex problem. This time, I'm stumped. I've got some text that needs to have five letters, if found not at the end of a word, to be replaced with different letters. For instance, should the letter a be found at the end of a word, leave it alone.

[PHP] What design patterns do you usually use?

2008-02-27 Thread skylark
Hi all, What design patterns do you usually use? -- Regards, Shelley

Re: [PHP] crc check for JPEG file exists

2008-02-27 Thread Bojan Tesanovic
Don't use CRC it is not made for purpose you want, you should use some better algo and of course MD5 is much better, though in my company we had collision with md5 but we are working on more than a billion data set. I have tried to use crc32 on some data and it happened to have very high

[PHP] Re: crc check for JPEG file exists

2008-02-27 Thread Aschwin Wesselius
Olav Mørkrid wrote: hello is crc32() an acceptable way of managing whether a JPEG file exists (in a database or similar collection)? i mean doing a crc32() on the binary data of the JPEG file, and then check the database if there is already another entry with the same CRC. the database has

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Paul Scott
On Wed, 2008-02-27 at 19:50 +0800, skylark wrote: What design patterns do you usually use? I am not sure that you are understanding what a design pattern is. It is not a piece of software or a thing to use, but it is a set of repeatable components that you use in whatever app you are writing.

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Richard Heyes
What design patterns do you usually use? Whatever solves the problem. Factory is quite a common one. MVC is another. -- Richard Heyes http://www.phpguru.org Free PHP and Javascript code -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What design patterns do you usually use?

2008-02-27 Thread skylark
Hi guys, What design patterns do you usually use? -- Regards, Shelley

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Zoltán Németh
2008. 02. 27, szerda keltezéssel 19.50-kor skylark ezt írta: Hi guys, What design patterns do you usually use? whichever seems fit to the situation ;) for me its most often singleton, registry, factory, activerecord and you could also read the thread about these last week... greets Zoltán

Re: [PHP] Cannot even come up with the beginning of a regex

2008-02-27 Thread Zoltán Németh
2008. 02. 27, szerda keltezéssel 13.51-kor Zoltán Németh ezt írta: 2008. 02. 27, szerda keltezéssel 12.46-kor Dotan Cohen ezt írta: Hi all, it's been a while since I've written with a regex problem. This time, I'm stumped. I've got some text that needs to have five letters, if found not

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Jochem Maas
David Sveningsson schreef: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument --daemon which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and terminate. It

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Per Jessen
David Sveningsson wrote: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument --daemon which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and terminate. It

[PHP] sort in while(list($vars) = mysql_fetch_row($result))

2008-02-27 Thread Verdon Vaillancourt
Hi, I'm running into some sorting issues using a while(list($vars) = mysql_fetch_row($result)). I can provide more code if needed, but thought I would try this little bit first to see if I'm missing a fundamental concept and not a detail. In a nutshell, I have a query first.. $result =

[PHP] Start/stop daemon using php

2008-02-27 Thread David Sveningsson
Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument --daemon which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and terminate. It also maintains a lockfile (with

Re: [PHP] Cannot even come up with the beginning of a regex

2008-02-27 Thread Zoltán Németh
2008. 02. 27, szerda keltezéssel 12.46-kor Dotan Cohen ezt írta: Hi all, it's been a while since I've written with a regex problem. This time, I'm stumped. I've got some text that needs to have five letters, if found not at the end of a word, to be replaced with different letters. For

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jochem Maas
Paul Scott schreef: On Wed, 2008-02-27 at 19:50 +0800, skylark wrote: What design patterns do you usually use? I am not sure that you are understanding what a design pattern is. It is not a piece of software or a thing to use, but it is a set of repeatable components that you use in whatever

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread @4u
Hi, You might consider D-BUS for your application and the D-BUS PHP binding which is available since some days too. This would allow you to start / stop your C application in a far more secure way than the suggested one. Please have a look at my original release annoucement at the D-BUS mailing

Re: [PHP] Start/stop daemon using php

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 7:51 AM, David Sveningsson [EMAIL PROTECTED] wrote: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument --daemon which forks the process and exits the parent. Then it setups a SIGQUIT

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote: On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote: Hi all, What design patterns do you usually use? This one:

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jochem Maas
Daniel Brown schreef: On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote: On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote: Hi all, What design patterns do you usually use? This one:

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Wolf
Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown schreef: On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote: On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote: Hi all, What

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 10:05 AM, Wolf [EMAIL PROTECTED] wrote: No, go with the Crushed purple velvet with the pageboy sleeves, that should accentuate the colors of your hair... Purple is my favorite color, actually, but I'd appreciate it if you'd please stop peeking through my windows at

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Aschwin Wesselius
Wolf wrote: But with the pattern you can make it bigger as needed And for them really big sizes, contact Omar and see if he can use something other then tent materials... Though that flame resistant stuff might be good for those with an issue walking and catching their knickers on

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Aschwin Wesselius
Daniel Brown wrote: On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote: Hi all, What design patterns do you usually use? This one: http://www.vam.ac.uk/vastatic/microsites/1486_couture/create.php It's maybe off-topic, but I like a slightly humorous note once

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 9:55 AM, Jochem Maas [EMAIL PROTECTED] wrote: besides the flower pattern doesn't really suit you, go with blue velvet ;-) Don't touch me there, you're not my Daddy! ;-P -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ? --

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Ray Hauge
Richard Heyes wrote: What design patterns do you usually use? Whatever solves the problem. Factory is quite a common one. MVC is another. I have a story to kind of touch on what Jochem said about you just don't know the name yet. Just recently I was tasked with creating a new in-house

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Paul Scott
On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote: Paul Scott schreef: there seems to be some misunderstanding ... a design pattern is not a component (or anything else of substance) but merely a conceptual strategy used to tackle a problem ... ever find yourself writing code that's

Re: [PHP] sort in while(list($vars) = mysql_fetch_row($result))

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 7:58 AM, Verdon Vaillancourt [EMAIL PROTECTED] wrote: [snip!] Then I pass it through this.. while(list($id, $text, $url, $m_order) = mysql_fetch_row($result)) { $out .= $text - $m_order \n; } echo $out; Is there a reason you're not simplifying this to the

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jochem Maas
Paul Scott schreef: On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote: Paul Scott schreef: there seems to be some misunderstanding ... a design pattern is not a component (or anything else of substance) but merely a conceptual strategy used to tackle a problem ... ever find yourself writing

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jason Pruim
On Feb 27, 2008, at 9:52 AM, Daniel Brown wrote: On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote: On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote: Hi all, What design patterns do you usually use?

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote: Hi all, What design patterns do you usually use? This one: http://www.vam.ac.uk/vastatic/microsites/1486_couture/create.php -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ?

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 10:16 AM, Aschwin Wesselius [EMAIL PROTECTED] wrote: Why not going with a Scottish kilt and have some cooling breeze while showing off what you're made of? Clan-wars sometimes started with having the wrong pattern on the kilt talking about the Bloods and the Crips

Re: [PHP] Question about PHP Licence and it's future!

2008-02-27 Thread Daniel Brown
On Tue, Feb 26, 2008 at 7:34 PM, Andrés Robinet [EMAIL PROTECTED] wrote: Yeah, FUTBOL, FUTBOL, FUTBOL! Look what's the first team according to FIFA http://www.fifa.com/worldfootball/ranking/lastranking/gender=m/fullranking.html He he he (now, I'll get tons of emails from Brazilians on

Re: [PHP] email with style (again)

2008-02-27 Thread Daniel Brown
On Tue, Feb 26, 2008 at 8:33 PM, tedd [EMAIL PROTECTED] wrote: Ok gang: What's wrong with the following code? [snip!] The placement was wrong with the content-type info, that's all. It should be in the headers, after your from/x-mailer/blah/blah/blah envelope information. Also, when

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread David Giragosian
On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote: Hi all, What design patterns do you usually use? This one: http://www.vam.ac.uk/vastatic/microsites/1486_couture/create.php Somebody been thinking about wedding

Re: [PHP] Shopping Carts

2008-02-27 Thread Manuel Barros Reyes
Hi, talking about Shopping Carts I am looking for one thats good but that it is also flexible when you need custom designs and extesibility. I've had experience with osCommerce and their designs are very rigid. It works out of the box but as soon as you need to customize design it's PITA cause

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Wolf
Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote: On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 6:46 AM, skylark [EMAIL PROTECTED] wrote: Hi all, What design patterns do you

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Wolf
Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 10:16 AM, Aschwin Wesselius [EMAIL PROTECTED] wrote: Why not going with a Scottish kilt and have some cooling breeze while showing off what you're made of? Clan-wars sometimes started with having the wrong pattern on

Re: [PHP] crc check for JPEG file exists

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 1:49 AM, Olav Mørkrid [EMAIL PROTECTED] wrote: hello is crc32() an acceptable way of managing whether a JPEG file exists (in a database or similar collection)? Not really. It won't always properly compare the binary data, and it's also slower than MD5, SHA1, and

Re: [PHP] sort in while(list($vars) = mysql_fetch_row($result))

2008-02-27 Thread Verdon Vaillancourt
On 27-Feb-08, at 9:23 AM, Daniel Brown wrote: On Wed, Feb 27, 2008 at 7:58 AM, Verdon Vaillancourt [EMAIL PROTECTED] wrote: [snip!] Then I pass it through this.. while(list($id, $text, $url, $m_order) = mysql_fetch_row($result)) { $out .= $text - $m_order \n; } echo $out; Is

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 10:26 AM, Wolf [EMAIL PROTECTED] wrote: OK, so now I have to ask... Where does an Irishman live that is in the middle of Polocs working in IT? Northeast Pennsylvania (USA). There's not much at all in the way of IT around here, it's mostly factories and farms. I

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 08:25 -0600, Ray Hauge wrote: There is also such a thing as too much. I heard a talk a while ago about code maintainability. The speaker mentioned a co-worker of his ran into his cube almost exhausted and proclaimed, I finally did it!. I used every one of the

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Ray Hauge
Robert Cummings wrote: On Wed, 2008-02-27 at 15:53 +0100, Jochem Maas wrote: Paul Scott schreef: On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote: Paul Scott schreef: there seems to be some misunderstanding ... a design pattern is not a component (or anything else of substance) but merely

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 10:05 -0500, Wolf wrote: Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown schreef: On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote: On 2/27/08, Daniel Brown [EMAIL PROTECTED] wrote: On Wed, Feb 27, 2008 at 6:46 AM, skylark

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 10:42 -0500, Robert Cummings wrote: On Wed, 2008-02-27 at 10:05 -0500, Wolf wrote: Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown schreef: On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian [EMAIL PROTECTED] wrote: On 2/27/08, Daniel Brown [EMAIL

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 15:53 +0100, Jochem Maas wrote: Paul Scott schreef: On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote: Paul Scott schreef: there seems to be some misunderstanding ... a design pattern is not a component (or anything else of substance) but merely a conceptual

Re: [PHP] sort in while(list($vars) = mysql_fetch_row($result))

2008-02-27 Thread Per Jessen
Verdon Vaillancourt wrote: Thanks for the input. The only reason is that I'm inheriting this from someone else and am asked to do a 'quick' fix to get it working again. The whole script is a little kludgy and it may be better to redo it. Is there anything fundamentally wrong with the

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Aschwin Wesselius
Robert Cummings wrote: No, go with the Crushed purple velvet with the pageboy sleeves, that should accentuate the colors of your hair... You fools... you can't just use any old design pattern anywhere. It's really important to use the correct pattern otherwise things will just fall

Re: [PHP] sort in while(list($vars) = mysql_fetch_row($result))

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 10:27 AM, Verdon Vaillancourt [EMAIL PROTECTED] wrote: Hi Dan, Thanks for the input. The only reason is that I'm inheriting this from someone else and am asked to do a 'quick' fix to get it working again. The whole script is a little kludgy and it may be better to

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 10:42 AM, Robert Cummings [EMAIL PROTECTED] wrote: You fools... you can't just use any old design pattern anywhere. It's really important to use the correct pattern otherwise things will just fall apart. This one is more aptly suited I think:

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 10:55 -0500, Daniel Brown wrote: On Wed, Feb 27, 2008 at 10:42 AM, Robert Cummings [EMAIL PROTECTED] wrote: You fools... you can't just use any old design pattern anywhere. It's really important to use the correct pattern otherwise things will just fall apart. This

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 10:58 AM, Robert Cummings [EMAIL PROTECTED] wrote: Oh, the phallus endowment fairy passed you over eh!? Sorry to hear. I was left with nothing but honesty and humility. Err humiliation. Take your pick. -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) {

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Nathan Nobbe
On Wed, Feb 27, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED] wrote: Surely he didn't explain OOP to you... he's anti OOP :) ya; im waiting to see one of these 'simple' sites thats written strictly w/ functions and procedural code that does more than support a username and password :)

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Aschwin Wesselius
Nathan Nobbe wrote: Surely he didn't explain OOP to you... he's anti OOP :) ya; im waiting to see one of these 'simple' sites thats written strictly w/ functions and procedural code that does more than support a username and password :) -nathan I worked for a company where they maintain

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 11:08 -0500, Nathan Nobbe wrote: On Wed, Feb 27, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED] wrote: Surely he didn't explain OOP to you... he's anti OOP :) ya; im waiting to see one of these 'simple' sites thats written strictly w/ functions and

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jochem Maas
Aschwin Wesselius schreef: Nathan Nobbe wrote: Surely he didn't explain OOP to you... he's anti OOP :) ya; im waiting to see one of these 'simple' sites thats written strictly w/ functions and procedural code that does more than support a username and password :) -nathan I worked for a

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jason Pruim
On Feb 27, 2008, at 11:08 AM, Nathan Nobbe wrote: On Wed, Feb 27, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED] wrote: Surely he didn't explain OOP to you... he's anti OOP :) ya; im waiting to see one of these 'simple' sites thats written strictly w/ functions and procedural

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Aschwin Wesselius
Jochem Maas wrote: Aschwin Wesselius schreef: Nathan Nobbe wrote: Surely he didn't explain OOP to you... he's anti OOP :) ya; im waiting to see one of these 'simple' sites thats written strictly w/ functions and procedural code that does more than support a username and password :)

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Nathan Nobbe
On Wed, Feb 27, 2008 at 11:15 AM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-02-27 at 11:08 -0500, Nathan Nobbe wrote: On Wed, Feb 27, 2008 at 10:37 AM, Robert Cummings [EMAIL PROTECTED] wrote: Surely he didn't explain OOP to you... he's anti OOP :) ya; im waiting to

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Aschwin Wesselius
Nathan Nobbe wrote: i understand designing for simplicity is key, however, things can only be kept so simple beyond reason. the more something does, the more complex it is; period. -nathan Nice touch, but what I'm most afraid of is abstraction layers. It is good to know what to abstract,

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jason Pruim
On Feb 27, 2008, at 11:42 AM, Aschwin Wesselius wrote: No. Give me procedural code please. I can read that from top to bottom, it sticks on 1 flow of the processing. Downside is having some code multiple times all over the place (hence an argument for OOP). Wouldn't that be a perfect

[PHP] Re: Start/stop daemon using php

2008-02-27 Thread Nathan Rixham
David Sveningsson wrote: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument --daemon which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and terminate. It also

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 11:53 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Feb 27, 2008, at 11:42 AM, Aschwin Wesselius wrote: No. Give me procedural code please. I can read that from top to bottom, it sticks on 1 flow of the processing. Downside is having some code multiple times

[PHP] Multiple Inheritance

2008-02-27 Thread chetan rane
Hi All Dose anyone know how to implement multiple inheritance in PHP 5. Interfaces dosent work . I have already Tried it. -- Have A pleasant Day Chetan. D. Rane Location: India Contact: +91-9986057255 other ID: [EMAIL PROTECTED] [EMAIL PROTECTED]

RES: [PHP] What design patterns do you usually use?

2008-02-27 Thread Thiago Pojda
-Mensagem original- De: Wolf [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 27 de fevereiro de 2008 12:06 Jochem Maas [EMAIL PROTECTED] wrote: snip Yeah, but I can't fit into that dress. ;-P besides the flower pattern doesn't really suit you, go with blue

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 12:07 PM, Thiago Pojda [EMAIL PROTECTED] wrote: Okay, this is just getting weird... We're a very close-knit bunch. ;-P -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread tedd
At 11:21 AM -0500 2/27/08, Jason Pruim wrote: Procedural code just more sense to me... $this =$that makes more sense then $this - $that or would it be $that -$this? You and me both. Also, this I understand: $query = SELECT cert FROM cert eval_id = $eval_id; $result = mysql_query($query) or

Re: [PHP] Multiple Inheritance

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 12:05 PM, chetan rane [EMAIL PROTECTED] wrote: Hi All Dose anyone know how to implement multiple inheritance in PHP 5. Interfaces dosent work . I have already Tried it. Like Java, PHP5 doesn't have multiple inheritance. It does have multiple interfaces, so I'm

Re: RES: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jason Pruim
On Feb 27, 2008, at 12:07 PM, Thiago Pojda wrote: -Mensagem original- De: Wolf [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 27 de fevereiro de 2008 12:06 Jochem Maas [EMAIL PROTECTED] wrote: snip Yeah, but I can't fit into that dress. ;-P besides the flower

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 12:10 PM, tedd [EMAIL PROTECTED] wrote: Sure, I understand that if you want to swap databases (MySQL to whatever) having a abstract layer makes it easier. But, it don't make it easier for me in the short term. Or create a simple non-OOP db_query() function and

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Nathan Nobbe
On Wed, Feb 27, 2008 at 11:42 AM, Aschwin Wesselius [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: i understand designing for simplicity is key, however, things can only be kept so simple beyond reason. the more something does, the more complex it is; period. -nathan Nice touch,

[PHP] Database Abstraction Idea

2008-02-27 Thread Ray Hauge
I've been working on a project that was started from scratch. I'm a minimalist, so I like to keep things as simple as possible. I've been using this idea for a database abstraction, and I thought I'd see if I could get some constructive criticism. Here is an example of how I use this first:

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Zoltán Németh
2008. 02. 27, szerda keltezéssel 17.42-kor Aschwin Wesselius ezt írta: Nathan Nobbe wrote: i understand designing for simplicity is key, however, things can only be kept so simple beyond reason. the more something does, the more complex it is; period. -nathan Nice touch, but

Re: [PHP] Multiple Inheritance

2008-02-27 Thread Zoltán Németh
2008. 02. 27, szerda keltezéssel 22.35-kor chetan rane ezt írta: Hi All Dose anyone know how to implement multiple inheritance in PHP 5. Interfaces dosent work . I have already Tried it. there is no multiple inheritance in php5, but multiple interfaces do work, I have already tried that ;)

[PHP] Performance Problem

2008-02-27 Thread Adriano Manocchia
Hi all, I've been chasing what I think is the same performance issue for about a year and it's driving me batty. First off, the server is a dual core 2.8 P4 with 2G RAM running RHEL5 hosted at The Planet and is under very light load. This problem started last year while the server was RHEL4 and

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Nathan Nobbe
On Wed, Feb 27, 2008 at 12:32 PM, Zoltán Németh [EMAIL PROTECTED] wrote: 2008. 02. 27, szerda keltezéssel 17.42-kor Aschwin Wesselius ezt írta: Nathan Nobbe wrote: i understand designing for simplicity is key, however, things can only be kept so simple beyond reason. the more

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Zoltán Németh
2008. 02. 27, szerda keltezéssel 12.45-kor Nathan Nobbe ezt írta: On Wed, Feb 27, 2008 at 12:32 PM, Zoltán Németh [EMAIL PROTECTED] wrote: 2008. 02. 27, szerda keltezéssel 17.42-kor Aschwin Wesselius ezt írta: Nathan Nobbe wrote: i understand designing for simplicity is key, however,

Re: [PHP] Performance Problem

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 12:39 PM, Adriano Manocchia [EMAIL PROTECTED] wrote: Hi all, I've been chasing what I think is the same performance issue for about a year and it's driving me batty. First off, the server is a dual core 2.8 P4 with 2G RAM running RHEL5 hosted at The Planet and is

[PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Dare Williams
Dear Developers, http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP to ASP.NET. So can you please justify this proofs from Microsoft and let everybody knows if they are all TRUE and MEANIFUL

Re: [PHP] Database Abstraction Idea

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 12:30 PM, Ray Hauge [EMAIL PROTECTED] wrote: I've been working on a project that was started from scratch. I'm a minimalist, so I like to keep things as simple as possible. I've been using this idea for a database abstraction, and I thought I'd see if I could get

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Christoph Boget
http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP to ASP.NET. So can you please justify this proofs from Microsoft and let everybody knows if they are all TRUE and MEANIFUL atall or they are

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Zoltán Németh
2008. 02. 27, szerda keltezéssel 10.03-kor Dare Williams ezt írta: Dear Developers, http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP to ASP.NET. So can you please justify this proofs

Re: [PHP] Performance Problem

2008-02-27 Thread Adriano Manocchia
I know my original post was long-winded, but I did mention that my php tests were run on a single-line PHP script that simply echoed hi so it couldn't get much simpler than that. But for thoroughness' sake, I've run the tests against a test file with a php extension with no PHP code at

Re: [PHP] How do you send stylized email?

2008-02-27 Thread Andrew Ballard
On Tue, Feb 26, 2008 at 11:39 PM, Paul Scott [EMAIL PROTECTED] wrote: [snip] --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm Seriously? All e-mail? Sorry - couldn't resist. That is one serious disclaimer.

Re: [PHP] Database Abstraction Idea

2008-02-27 Thread Ray Hauge
Daniel Brown wrote: Should catch(e) really be catch(Exception $e) ? Something like that. I was paraphrasing, which seems weird, since I was looking at the code for the class description anyway :) Thanks for the info. -- Ray Hauge www.primateapplications.com -- PHP General Mailing

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 10:03 -0800, Dare Williams wrote: Dear Developers, http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP to ASP.NET. So can you please justify this proofs from

Re: [PHP] Performance Problem

2008-02-27 Thread Eric Butera
On Wed, Feb 27, 2008 at 12:39 PM, Adriano Manocchia [EMAIL PROTECTED] wrote: Hi all, I've been chasing what I think is the same performance issue for about a year and it's driving me batty. First off, the server is a dual core 2.8 P4 with 2G RAM running RHEL5 hosted at The Planet and is

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 1:03 PM, Dare Williams [EMAIL PROTECTED] wrote: Dear Developers, http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP to ASP.NET. So can you please justify this proofs

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread David Giragosian
On 2/27/08, Zoltán Németh [EMAIL PROTECTED] wrote: 2008. 02. 27, szerda keltezéssel 10.03-kor Dare Williams ezt írta: Dear Developers, http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Per Jessen
Dare Williams wrote: Dear Developers, http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP to ASP.NET. So can you please justify this proofs from Microsoft and let everybody knows if

[PHP] Request for work on the php.net FAQs

2008-02-27 Thread Philip Olson
Hello everyone, The PHP manual FAQ has not received much attention over these past few years, so it's outdated. This needs to be fixed. If you would like to add questions (and ideally, with answers) to the FAQ then please do so by either adding them to this thread, or point them out, and

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Greg Donald
On 2/27/08, Robert Cummings [EMAIL PROTECTED] wrote: *lol* Look at the examples on the page... aks yourself if you enjoy typing 2 to 3 times as much to do the same thing. *lol* This is one of the same reasons why I'm using Ruby on Rails more and PHP less, all the time. -- Greg Donald

[PHP] Getting the name of a function

2008-02-27 Thread Richard S. Crawford
For my own amusement, I'm writing a function that will print out detailed error messages for an API that I'm creating for a minor project. One of the pieces of information I'd like to return would be the name of the function that called the error function. For example: ?php function error

[PHP] Re: Are these Truthful Proof about PHP ??

2008-02-27 Thread Nathan Rixham
Dare Williams wrote: Dear Developers, http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP to ASP.NET. So can you please justify this proofs from Microsoft and let everybody knows if they are

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread tedd
At 6:32 PM +0100 2/27/08, Zoltán Németh wrote: thanks to its good class structure if we need to modify something we know which file to open and where to modify, even if that class was originally the work of someone else in the team. how would you do that without class structure? greets Zoltán

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread tedd
At 12:18 PM -0500 2/27/08, Daniel Brown wrote: On Wed, Feb 27, 2008 at 12:10 PM, tedd [EMAIL PROTECTED] wrote: Sure, I understand that if you want to swap databases (MySQL to whatever) having a abstract layer makes it easier. But, it don't make it easier for me in the short term. Or

Re: [PHP] Performance Problem

2008-02-27 Thread Adriano Manocchia
I'm trying to get it working but it doesn't seem to want to write the profile info at the moment. Correct me if I'm wrong, but wouldn't this just show problems within actual code? If the problem is occurring on a PHP file with no PHP in it whatsoever, it seems to fall outside the scope of

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 12:53 -0600, Greg Donald wrote: On 2/27/08, Robert Cummings [EMAIL PROTECTED] wrote: *lol* Look at the examples on the page... aks yourself if you enjoy typing 2 to 3 times as much to do the same thing. *lol* This is one of the same reasons why I'm using Ruby on

  1   2   3   >