[PHP] Why don't webhosts upgrade to PHP5 ?
My webhost doesn't want to upgrade to PHP5 because of security reasons and some scripts that will mallfunction. I find it hard to believe. Current conf of webhost is PHP 4.3.11, Apache 1.3.33 and MySQL 3.23.49. What real reasons could there be not to upgrade ? How could I convince them to upgrade to PHP5 ? (Less important for me : but why not upgrade to Apache 2.x and at least MySQL 4.x ?) Enlighten me, Pugi! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why don't webhosts upgrade to PHP5 ?
On Wednesday 07 December 2005 08:37, Pugi! wrote: My webhost doesn't want to upgrade to PHP5 because of security reasons and some scripts that will mallfunction. I find it hard to believe. Current conf of webhost is PHP 4.3.11, Apache 1.3.33 and MySQL 3.23.49. What real reasons could there be not to upgrade ? How could I convince them to upgrade to PHP5 ? (Less important for me : but why not upgrade to Apache 2.x and at least MySQL 4.x ?) 1. If it ain't broken, don't fix it. 2. PHP 4 has proven its worth. Now that PHP 5 came out, there will be tons of bugs that aren't found yet. 3. PHP 5 *WILL* break some scripts, and most big suits like forums and shops and stuff will need a serious amount of work to convert to php 5 Same applies for Apache and MySQL. Consider this, NASA still uses 386 cpu's in their space equipment because they are a lot more stable and mission secure then newer chipsets. HTH Andy -- Now listening to Top! Radio Live www.topradio.be/stream on amaroK Geek code: www.vlaamse-kern.com/geek Registered Linux User No 379093 If life was for sale, what would be its price? www.vlaamse-kern.com/sas/ for free php utilities -- pgpJOPHFo2w1x.pgp Description: PGP signature
Re: [PHP] Why don't webhosts upgrade to PHP5 ?
Andy Pieters wrote: On Wednesday 07 December 2005 08:37, Pugi! wrote: My webhost doesn't want to upgrade to PHP5 because of security reasons and some scripts that will mallfunction. I find it hard to believe. Current upgrade to php5 == scripts that will mallfunction == support calls == losing money. thats how I see the ISPs view of upgrading to php5, regardless of whether they are right for them it seems to be a simple matter of economics and operational stability. you also have to consider the ammount of work involved is purely performing the upgrade properly. conf of webhost is PHP 4.3.11, Apache 1.3.33 and MySQL 3.23.49. What real reasons could there be not to upgrade ? How could I convince them to upgrade to PHP5 ? (Less important for me : but why not upgrade to Apache 2.x and at least MySQL 4.x ?) 1. If it ain't broken, don't fix it. PHP4 _is_ broken in places. if it was perfect then there would be no need for improvement. 2. PHP 4 has proven its worth. Now that PHP 5 came out, there will be tons of bugs that aren't found yet. rather defeatist attitude, and a point that cannot be truely substantiated. besides there is a point when it becomes too difficult to successfully enchance or add features to something (move forward) and you have to start 'fresh'. 3. PHP 5 *WILL* break some scripts, and most big suits like forums and shops and stuff will need a serious amount of work to convert to php 5 and some scripts are broken. there is a lot of code out there that is technically evil (potential segfaults etc) so this cuts boths ways. besides most apps [forums etc] out there arn't hard at all to convert - the problem for the developers of such apps is more likely to be about releasing versions that run on both (which is more difficult) or maintaining 2 releases, which eat into your time. Same applies for Apache and MySQL. Consider this, NASA still uses 386 cpu's in their space equipment because they are a lot more stable and mission secure then newer chipsets. are you sure its not because they have invested so much time and energy into the hardware, software and procedures surrounding the cpus. refitting a space shuttle is not done on a whim like your changing the cpu in the box under your desk... comparitive stability wirth newer models doesn't factor in at all if you consider that every part on a space shuttle could be assumed to only be authorized for use after it's absolute stability has been proven. HTH Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Why don't my PHP variables get posted?
Hi, I have a small form with checkbox objects. Below is the code: form method=POST action=doc_complete.html input type=checkbox name=b13 value=checked font size=3Export Declaration (B13)/fontbr input type=checkbox name=\cinvoice\ value=checked font size=3Commercial Invoice/font p align=left input type=submit value=Continue gt;gt;gt;/p /form In the past, I could access the two fields in doc_complete.html by using PHP as in: $b13 and $cinvoice However, when I added the code: ?PHP session_cache_limiter('private, must-revalidate'); session_start(); ? to the top of doc_complete.html, I can no longer access the variables properly, i.e., they do not give the correct results. For some reason, they seem to retain the first posting set. Help, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why don't ...
H! Thank you, but yuor fragment of code read all file and I'm really want is read an integer from the file. There are some fuction of PHP thas serve me to make that? Rasmus Lerdorf said: Is your second character perhaps a 0? That while loop is going to end as soon as it gets a character that evaluates to 0. Write it like this instead: while(!feof($this-m_file)) { $c = fgetc($this-m_file); if(is_numeric($c)) $str .= $c; } -Rasmus On Sun, 16 Dec 2001, Yoel Benitez Fonseca wrote: Hi! The following code fragment tries to read a sequence of digits from a file but it doesn't work, only the first character is read, Which is my error?. $str = ; while( ($c = fgetc($this-m_file)) ereg([0-9], $c) ){ $str .= $c; } Thank you in advance -- Yoel Benitez Fonseca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Why don't ...
Hi! The following code fragment tries to read a sequence of digits from a file but it doesn't work, only the first character is read, Which is my error?. $str = ; while( ($c = fgetc($this-m_file)) ereg([0-9], $c) ){ $str .= $c; } Thank you in advance -- Yoel Benitez Fonseca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Why don't ...
At 09:14 AM 12/16/2001 -0500, Yoel Benitez Fonseca wrote: Hi! The following code fragment tries to read a sequence of digits from a file but it doesn't work, only the first character is read, Which is my error?. $str = ; while( ($c = fgetc($this-m_file)) ereg([0-9], $c) ){ $str .= $c; } What happens when you do just this: $str = ; while($c = fgetc($this-m_file)){ $str .= $c; } Does it still only read the first character? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Why don't ...
Is your second character perhaps a 0? That while loop is going to end as soon as it gets a character that evaluates to 0. Write it like this instead: while(!feof($this-m_file)) { $c = fgetc($this-m_file); if(is_numeric($c)) $str .= $c; } -Rasmus On Sun, 16 Dec 2001, Yoel Benitez Fonseca wrote: Hi! The following code fragment tries to read a sequence of digits from a file but it doesn't work, only the first character is read, Which is my error?. $str = ; while( ($c = fgetc($this-m_file)) ereg([0-9], $c) ){ $str .= $c; } Thank you in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]