Re: [PHP] Are PHP5 features worth it?

2006-12-21 Thread tg-php
Ha! Mine too! How long before this secret gets out and our apps all start imploding?? Technically this is true. You can't do AJAX with PHP4. Or PHP5. Not the AJAX part at least, since it's all handled in Javascript.What gets returned to the AJAX app and what it interacts with on the

Re: [PHP] Are PHP5 features worth it?

2006-12-21 Thread Bernhard Zwischenbrugger
Hi You can make AJAX Applications without XML (AJWOX). You can also make Synchronous AJAX without using the XMLHttpRequest Object. You can call it SJWOX (synchronous javascript without XML). The thing I like is, that character encoding is correct if you use XML for sending data to the server.

Re: [PHP] Are PHP5 features worth it?

2006-12-21 Thread Robert Cummings
On Thu, 2006-12-21 at 20:02 +0100, Bernhard Zwischenbrugger wrote: Hi You can make AJAX Applications without XML (AJWOX). You can also make Synchronous AJAX without using the XMLHttpRequest Object. You can call it SJWOX (synchronous javascript without XML). The thing I like is, that

RE: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Nauman Akbar
Hello! Let us consider my scenario. I am developing a XML based web service. Using pre PHP 5 features, I am stuck with DOM, SOAP or plain old XML parser. Too cumbersome - eh. I specifically upgraded my server to PHP 5 to make use of SimpleXML. I am sure there are many other packages that are

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Jochem Maas
Nauman Akbar wrote: Hello! Let us consider my scenario. I am developing a XML based web service. Using pre PHP 5 features, I am stuck with DOM, SOAP or plain old XML parser. Too the DOM extension is php5 only! it replaces DOMXML. again the SOAP extension (very nice it is too) is php5 only.

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-19 19:05:23 +0100: I'm writing a PHP program and I've got a number of concerns. The program is about 20 KLOC at the moment, but will probably grow quite a lot. I'm using OOP throughout, and I don't really have a lot of problems with what PHP4 can do with OOP.

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-19 19:05:23 +0100: ... ... What major compelling reasons do I have to start using exceptions and OOP-5? All the things you mentioned, and then some. Someone else mentioned that PHP 5 is much less inclined to copy objects. it's not

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Robert Cummings
On Wed, 2006-12-20 at 11:49 +0100, Jochem Maas wrote: How about iterators? You can have objects that look like arrays yet they take much less memory: $rs = $db-query($select); # query the db foreach ($rs as $row) { # fetch the row whatever($row); } ah yes

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-20 11:49:25 +0100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-12-19 19:05:23 +0100: What major compelling reasons do I have to start using exceptions and OOP-5? All the things you mentioned, and then some. Someone else mentioned that PHP 5 is

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Jochem Maas
Robert Cummings wrote: On Wed, 2006-12-20 at 11:49 +0100, Jochem Maas wrote: How about iterators? You can have objects that look like arrays yet they take much less memory: $rs = $db-query($select); # query the db foreach ($rs as $row) { # fetch the row whatever($row);

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Robert Cummings
On Wed, 2006-12-20 at 12:27 +0100, Jochem Maas wrote: Robert Cummings wrote: On Wed, 2006-12-20 at 11:49 +0100, Jochem Maas wrote: How about iterators? You can have objects that look like arrays yet they take much less memory: $rs = $db-query($select); # query the db

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-20 06:05:29 -0500: On Wed, 2006-12-20 at 11:49 +0100, Jochem Maas wrote: How about iterators? You can have objects that look like arrays yet they take much less memory: $rs = $db-query($select); # query the db foreach ($rs as $row) { #

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Bernhard Zwischenbrugger
All the XML things are new Start with DOM. If you know DOM in Browser you can use DOM in PHP5. AJAX Webapplications are not possible in PHP4. The experimental DOMXML in PHP4 is NOT standard conform and has DIFFERENT syntax than DOM in Javascript. To retrive data from AJAX is simple.

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Robert Cummings
On Wed, 2006-12-20 at 15:14 +0100, Bernhard Zwischenbrugger wrote: AJAX Webapplications are not possible in PHP4. Bullshit. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com |

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Stut
Robert Cummings wrote: On Wed, 2006-12-20 at 15:14 +0100, Bernhard Zwischenbrugger wrote: AJAX Webapplications are not possible in PHP4. Bullshit. Indeed, what with PHP being server-side and AJAX being client-side. Where AJAX is concerned the server-side technology is irrelevant. -Stut

RE: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Ray Hauge
[mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 8:37 AM To: Robert Cummings Cc: Bernhard Zwischenbrugger; php-general@lists.php.net Subject: Re: [PHP] Are PHP5 features worth it? Robert Cummings wrote: On Wed, 2006-12-20 at 15:14 +0100, Bernhard Zwischenbrugger wrote: AJAX

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Jochem Maas
Stut wrote: Robert Cummings wrote: On Wed, 2006-12-20 at 15:14 +0100, Bernhard Zwischenbrugger wrote: AJAX Webapplications are not possible in PHP4. Bullshit. Indeed, what with PHP being server-side and AJAX being client-side. Where AJAX is concerned the server-side technology is

RE: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Bernhard Zwischenbrugger
: [PHP] Are PHP5 features worth it? Robert Cummings wrote: On Wed, 2006-12-20 at 15:14 +0100, Bernhard Zwischenbrugger wrote: AJAX Webapplications are not possible in PHP4. Bullshit. Indeed, what with PHP being server-side and AJAX being client-side. Where AJAX is concerned

RE: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Robert Cummings
On Wed, 2006-12-20 at 17:38 +0100, Bernhard Zwischenbrugger wrote: Is there a way to parse XML in PHP4? Yes. And even if there weren't any libs, there's nothing stopping anyone from writing a parser in PHP itself! Cheers, Rob. -- .. |

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Jochem Maas
Robert Cummings wrote: On Wed, 2006-12-20 at 17:38 +0100, Bernhard Zwischenbrugger wrote: Is there a way to parse XML in PHP4? Yes. And even if there weren't any libs, there's nothing stopping anyone from writing a parser in PHP itself! ai, and in most cases a regexp will cut it, gotta love

RE: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Ray Hauge
- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 12:22 PM To: Robert Cummings Cc: Bernhard Zwischenbrugger; php-general@lists.php.net Subject: Re: [PHP] Are PHP5 features worth it? Robert Cummings wrote: On Wed, 2006-12-20 at 17:38 +0100, Bernhard Zwischenbrugger

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread tedd
At 3:14 PM +0100 12/20/06, Bernhard Zwischenbrugger wrote: AJAX Webapplications are not possible in PHP4. Please be very, very quite, my PHP4 web AJAX Web applications don't know that and I don't want them revolting. tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Are PHP5 features worth it?

2006-12-19 Thread Robert Cummings
On Tue, 2006-12-19 at 19:05 +0100, Niels wrote: Hi list, I'm writing a PHP program and I've got a number of concerns. The program is about 20 KLOC at the moment, but will probably grow quite a lot. I'm using OOP throughout, and I don't really have a lot of problems with what PHP4 can do

Re: [PHP] Are PHP5 features worth it?

2006-12-19 Thread Frank M. Kromann
PHP5 is more than just OO features, SimpleXML, SPL, Filter and the newly added Date/Time functions just to mention a few. If you need any of those PHP5 is the way to go. The first version of PHP5 was released in 2004, so it's been arround for a while now. In most cases you can still use the old