Re: [PHP] Re: PHP4 vs PHP5
Although I rarely post here (mostly lurking)... I would think that the mere fact that support for PHP4 ends in 8 months should be in and of itself a strong argument for the server admins. In my current position, I code and am responsible for a few different servers. It's certainly a strong argument in my eyes. I'm also kind of surprised that with the amount of time that PHP5 has now been out that this is still a question for some people. (not directed at you but maybe the server admins) Once again, pretty strong argument is, if support for PHP4 is being dropped. that must mean that there is much confidence that PHP5 is mature enough... to be the only supported version in being rolled out in production environments. That's my 2 cents worth. Yves On 4/7/07, Fernando Cosso [EMAIL PROTECTED] wrote: I am making a new project, so if you are telling me that php5 is mature enough I will code for that version. I'm sure Mambo is ready for php5. The thing is that I have to give pretty good arguments (like some page at zend or php.net or whatever) to the guys that install the server. I also know that debian wait until the last moment to put new versions. Best regards -- [EMAIL PROTECTED] http://www.fernandocosso.com.ar -- Yves Arsenault Love is the only force capable of transforming an enemy into a friend. --Martin Luther King, Jr.
Re: [PHP] Re: PHP4 vs PHP5
On Sat, 2007-04-07 at 21:15 -0300, Yves Arsenault wrote: Although I rarely post here (mostly lurking)... I would think that the mere fact that support for PHP4 ends in 8 months should be in and of itself a strong argument for the server admins. In my current position, I code and am responsible for a few different servers. It's certainly a strong argument in my eyes. I'm also kind of surprised that with the amount of time that PHP5 has now been out that this is still a question for some people. (not directed at you but maybe the server admins) Once again, pretty strong argument is, if support for PHP4 is being dropped. that must mean that there is much confidence that PHP5 is mature enough... The above line does not follow from any kind of logical reasoning. A in no way implies B as you have ascertained from thin air. to be the only supported version in being rolled out in production environments. Or... there's some strong arming happening to force the move. PHP4 userbase greatly outnumbers the PHP5 userbase. I think the userbase speaks louder than the support timeframe. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP4 vs PHP5
Robert Cummings wrote: Or... there's some strong arming happening to force the move. PHP4 userbase greatly outnumbers the PHP5 userbase. I think the userbase speaks louder than the support timeframe. Cheers, Rob. Damien Seguy's latest stats showing the adoption rates of PHP5 show what Rob said. http://www.nexen.net/chiffres_cles/phpversion/16814-php_stats_evolution_for_march_2007.php I'm sure many of the polled domains are shared hosts, who have users, which exponentially complicates the task of migration. Travis Doherty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: php4 vs. php5
I'm wondering if you can outline, or direct me to a resource that explicitly notes the benefits of php5 over php4. The main benefit I see to PHP5 over PHP4 (and one that may not be covered in the migrating document at php.net) is that PHP4 is going away, and that migrating from PHP4 to PHP5 will almost certainly be an easier job than migrating from PHP4 to PHP6 a year down the line. In addition, as more people migrate, fewer people will be available to support PHP4. To me this is the most compelling argument for migrating as soon as possible. In fact, it would probably be prudent to get a copy of the PHP6 roadmap and be aware of ITS changes as you make the migration. JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php4 vs. php5
On 2/3/06, Keith Proctor [EMAIL PROTECTED] wrote: I need to add two numbers together, unfortunately one of them is a string that starts with a character. I'd like to convert a string such as 'x5' to the number 5. Don't care about it's final type as that isn't the hard part. :) I can't find a function to do this. I looked in the math class and in the string class and there doesn't seem to be something to help. I, of course, could write something to handle it but I would prefer to use something built in. Any help would be appreciated. preg_replace(/[^0-9]/, , $x) I would expect intval to work as well, but aparently not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [PHP-INSTALL] Re: [PHP] Re: php4 vs. php5
This is a no-brainer, really. From a security standpoint alone, PHP 5 is superior, but through in the OOP and there's no question. There are books written on the subject - do an amazon search. And don't forget eric's advice. mark Paul Novitski [EMAIL PROTECTED] 02-Feb-06 19:36 PM At 04:09 PM 2/2/2006, Tim Burgan wrote: I'm wondering if you can outline, or direct me to a resource that explicitly notes the benefits of php5 over php4. They've got everything you need at php.net:* Appendix B. Migrating from PHP 4 to PHP 5 http://php.net/manual/en/migration5.php * to paraphrase Arlo Guthrie
Re: [PHP] Re: php4 vs. php5
On 2/3/06, Keith Proctor [EMAIL PROTECTED] wrote: I'd like to convert a string such as 'x5' to the number 5. At 09:10 AM 2/3/2006, Rory Browne wrote: preg_replace(/[^0-9]/, , $x) I would expect intval to work as well, but aparently not. Rory, the RegExp you suggest will strip decimal points and minus signs, turning -1.5 into 15. That's why I made exceptions for them with this regular expression: /[^\d\.\-]/ = not {digit or period or minus} (I think I might have been excessive with the back-slashes, but they don't hurt...) Intval() will deliver the integer value up to the first non-numeric character, turning 1x to 1 but also turning 1.5 to 1. I don't know if the distinction between integer floating point numbers is relevant to Keith's application, but I can imagine many for which it would. On top of all that, there are national standards for numeric presentation (such as the use of the comma as a decimal separator) but that's another story... Kind regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php4 vs. php5
At 04:09 PM 2/2/2006, Tim Burgan wrote: I'm wondering if you can outline, or direct me to a resource that explicitly notes the benefits of php5 over php4. They've got everything you need at php.net:* Appendix B. Migrating from PHP 4 to PHP 5 http://php.net/manual/en/migration5.php * to paraphrase Arlo Guthrie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php4 vs. php5
I need to add two numbers together, unfortunately one of them is a string that starts with a character. I'd like to convert a string such as 'x5' to the number 5. Don't care about it's final type as that isn't the hard part. :) I can't find a function to do this. I looked in the math class and in the string class and there doesn't seem to be something to help. I, of course, could write something to handle it but I would prefer to use something built in. Any help would be appreciated. Thanks, Keith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php