GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   programmers - php4 or 5 or both??? (https://gfy.com/showthread.php?t=887814)

georgeyw 02-14-2009 03:22 AM

programmers - php4 or 5 or both???
 
Do you code your scripts for both php4 & 5 or just only 4?

I'm getting the shits having to code everything twice and am contemplating going 5 only.

Would like to hear thoughts on doing this?

J.P. 02-14-2009 03:36 AM

PHP's support for version 4 has been discontinued since 31st of December 2007... Why would you support it still? But then again, I could be wrong :P

Nookster 02-14-2009 03:39 AM

It's not so tough to do both at the same time (meaning make the software compatible with both) depending on what you're doing. What issues are you having and with what?

georgeyw 02-14-2009 03:44 AM

Quote:

Originally Posted by J.P. (Post 15492508)
PHP's support for version 4 has been discontinued since 31st of December 2007... Why would you support it still? But then again, I could be wrong :P

haha yeah that doesn't mean 4 billion servers aren't still using it :winkwink:

Quote:

Originally Posted by Nookster (Post 15492515)
It's not so tough to do both at the same time (meaning make the software compatible with both) depending on what you're doing. What issues are you having and with what?

No big issue - parsing xml - php5 is so much better equipped to parse xml.

Tube Ace 02-14-2009 04:34 AM

yup, parsing XML in PHP 5 is a breeze.

J.P. 02-14-2009 04:46 AM

Quote:

Originally Posted by georgeyw (Post 15492529)
haha yeah that doesn't mean 4 billion servers aren't still using it :winkwink:

Yep, that's true, sadly :) I guess it all depends on who you're writing the code for. If you develop scripts targeted to many webmasters to use it, then yes, you should still support PHP4. I know I haven't written a line of code in PHP4 for years now, but I do develop strictly for clients that also host with us, and that means PHP5 is installed on the server :)

quantum-x 02-14-2009 05:03 AM

Quote:

Originally Posted by georgeyw (Post 15492529)
haha yeah that doesn't mean 4 billion servers aren't still using it :winkwink:

No big issue - parsing xml - php5 is so much better equipped to parse xml.

There's absolutely no reason that I can think of to continue using 4.
Backwards compatibility has been solid for years now.

The main advantage of PHP5 and 6 is the growing maturity of its OO + exception + interface frameworks.

georgeyw 02-14-2009 05:04 AM

Quote:

Originally Posted by J.P. (Post 15492598)
Yep, that's true, sadly :) I guess it all depends on who you're writing the code for. If you develop scripts targeted to many webmasters to use it, then yes, you should still support PHP4. I know I haven't written a line of code in PHP4 for years now, but I do develop strictly for clients that also host with us, and that means PHP5 is installed on the server :)

There's the problem :winkwink:

Klen 02-14-2009 05:06 AM

I'll go with php 6 :D

V_RocKs 02-14-2009 05:21 AM

Php 5........

who 02-14-2009 05:34 AM

Php 5 - always.

k0nr4d 02-14-2009 06:39 AM

always php 5...

CaptainHowdy 02-14-2009 07:16 AM

Quote:

Originally Posted by k0nr4d (Post 15492866)
always php 5...

Thread closed...


All times are GMT -7. The time now is 12:09 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123