Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

View Poll Results: Do you use PHP4 or PHP5?
PHP4 26 72.22%
PHP5 10 27.78%
Voters: 36. You may not vote on this poll

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-25-2005, 08:49 AM   #1
eskimoen
Confirmed User
 
Join Date: May 2001
Location: Denmark
Posts: 146
Do you use PHP4 or PHP5?

I posted the same little survey on another board. It would be great to know what the GFY users prefer, so please spare two mins of your time and help me and other php developers.

Do you use PHP4 or PHP5?

How to check your server:
  1. Create a new file called phpinfo.php
  2. Open the file and copy the follwing into it:
    <?php phpinfo(); ?>
  3. Upload the file to your webserver
  4. Goto http://www.yourdomain.com/phpinfo.php
  5. You will see the PHP version at the top
  6. Submit your PHP version in this poll
  7. Delete phpinfo.php from your server

Note: If your PHP is older than 4.3.7 it is definitely time to upgrade. Contact your host.

Info: Currently newest versions are 5.0.4 and 4.3.11.

Thanks for your help.
eskimoen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 09:47 AM   #2
mortenb
Confirmed User
 
mortenb's Avatar
 
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
php4.. php5 is still not stable enough for important stuff.. give it 3-6 months..
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 10:02 AM   #3
pstation
Confirmed User
 
Join Date: Jul 2003
Location: chicago
Posts: 1,135
i use both
pstation is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 10:04 AM   #4
College Downtime
Confirmed User
 
Join Date: May 2005
Location: Illinois
Posts: 557
im working on making everything 5
__________________
College Downtime.com
College Downtime is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 10:14 AM   #5
beta-tester
Rock 'n Roll Baby!
 
Join Date: Sep 2004
Location: USA, temporarly
Posts: 22,562
I use PHP Version 4.3.9
__________________

Sig for sale. Affordable prices. Contact me and get a great deal ;)

My contact:
ICQ: 944-320-46
e-mail: manca {AT} HotFreeSex4All.com
beta-tester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-25-2005, 10:41 AM   #6
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
The latest stable version in the 4 tree for production. 5 for some demo servers.
__________________
Skype variuscr - Email varius AT gmail
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 03:47 PM   #7
eskimoen
Confirmed User
 
Join Date: May 2001
Location: Denmark
Posts: 146
Quote:
Originally Posted by mortenb
php4.. php5 is still not stable enough for important stuff.. give it 3-6 months..
PHP5 is not stable??? PHP 5.0.4 is definitely stable. The first release candidates of PHP5 was released more than a year ago. The first stable version of PHP5 was released 13 July 2004. See http://php.net/releases.php

I personally use PHP5 because of the improved mysql client api, MySQLi, but mostly because of the new object model. OOP in PHP5 is pretty cool.


Btw, thanks for your votes guys.
__________________
Click here to catch hitbots!!

eskimoen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 03:50 PM   #8
Trafficbrokercom
Confirmed User
 
Join Date: Dec 2002
Posts: 542
Quote:
Originally Posted by eskimoen
I personally use PHP5 because of the improved mysql client api, MySQLi, but mostly because of the new object model. OOP in PHP5 is pretty cool.

exactly
Trafficbrokercom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 03:51 PM   #9
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
PHP5, moved to it about half a year ago and never looked back
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 03:52 PM   #10
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
I'm also liking Apache2
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 03:54 PM   #11
Nathan
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 3,108
:2cents

Quote:
Originally Posted by eskimoen
PHP5 is not stable??? PHP 5.0.4 is definitely stable. The first release candidates of PHP5 was released more than a year ago. The first stable version of PHP5 was released 13 July 2004. See http://php.net/releases.php

I personally use PHP5 because of the improved mysql client api, MySQLi, but mostly because of the new object model. OOP in PHP5 is pretty cool.


Btw, thanks for your votes guys.
PHP5 is not stable, it is way too new to be stable. You might have just not stumbled over the bugs yet ;)

Functionality of some functions changed in certain cases and other things.

Also, there is no reason to go on PHP5. The only major change is the new OOP model and OOP in scripting languages is... well... unneeded overhead.

Just my 2 cents..
__________________
"Think about it a little more and you'll agree with me, because you're smart and I'm right."
- Charlie Munger
Nathan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 04:11 PM   #12
eskimoen
Confirmed User
 
Join Date: May 2001
Location: Denmark
Posts: 146
Quote:
Originally Posted by Nathan
PHP5 is not stable, it is way too new to be stable. You might have just not stumbled over the bugs yet ;)

Functionality of some functions changed in certain cases and other things.

Also, there is no reason to go on PHP5. The only major change is the new OOP model and OOP in scripting languages is... well... unneeded overhead.

Just my 2 cents..
No I havent stumbled across any PHP5 bugs. I believe that PHP5 is very stable. It contains bugs as any other software. Many bugs reports on PHP5 is on new and experimental features.

There are very few incompatibilities between PHP5 and PHP4. See http://www.php.net/manual/en/migrati...compatible.php

What functions have changed functionality? I havent come across anyone.

Last edited by eskimoen; 05-29-2005 at 04:13 PM..
eskimoen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 06:01 PM   #13
CGI
Confirmed User
 
Join Date: Apr 2002
Location: Portland, OR
Posts: 139
The OOP stuff has changed enough to be a pain in the ass in terms of migrating forward from 4 to 5.

Personally I make sure everything new which I write works on 4 and 5 and try to fix the old stuff as I come across it, however, I still have 4 on my production servers (although the last time I've really had any compatibility problems with 5 was when it was very early in the dot releases).

- CGI
__________________
Komply - The 2257 record keeping & content management application (sneak preview)
Manic Cash - Tight Niches, Solid Payouts...
ICQ 346121285
CGI is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 06:11 PM   #14
mrthumbs
salad tossing sig guy
 
mrthumbs's Avatar
 
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
ill probably be using php4 for the upcoming 3-5 years. No joke.
mrthumbs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 06:25 PM   #15
fr8
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Posts: 5,074
still on php4 but i make sure i code with php5 in mind.
__________________
joesmut (a) gmail Dot com
Full Stack Developer
fr8 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 06:28 PM   #16
MikeXAMO
Confirmed User
 
Join Date: Mar 2002
Location: Trailer Park
Posts: 660
PHP 5, I've been using it for at least 4 months now and I havent had a single issue... works great!
__________________
Xamo Entertainment
Xamo.com | EZSets.com

ICQ: 9439118 MSN: mikeb [at] xamo.com Tollfree: 800-544-XAMO
XXX CMS - Designed by Adult Webmasters, for Adult Webmasters.
MikeXAMO is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 06:29 PM   #17
etech
Confirmed User
 
Join Date: Feb 2004
Location: Right next to you....
Posts: 1,148
Its very nice that PHP became much more Object Oriented, but it's still very buggy
etech is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:08 PM   #18
INDK
Confirmed User
 
Join Date: Jan 2004
Location: Edmonton, Alberta
Posts: 75
Quote:
Originally Posted by Nathan
PHP5 is not stable, it is way too new to be stable. You might have just not stumbled over the bugs yet ;)

Functionality of some functions changed in certain cases and other things.

Also, there is no reason to go on PHP5. The only major change is the new OOP model and OOP in scripting languages is... well... unneeded overhead.

Just my 2 cents..
First, PHP5 is not "new". Early versions of the Zend2 Engine were available in CVS a very long time ago and were fairly popular to the PHP developer community even before any release of PHP5 was made. If your installation of PHP5 is unstable, I recommend you report it to the Zend Mailing Lists because I think they would be very surprised to learn that PHP5 is unstable.

Second, as far as "Functionality of some functions changed" goes, as someone already pointed out all the compatibility issues are listed here. Now tell me how much of that have you actually used?

"The only major change is the OOP model". RTF ChangeLog.



The natural progression of languages has been something like this: Statement-based languages (ASM, etc.) -> Procedural Languages (Pascal, etc.) -> Object-Oriented Languages (Java, etc.). PHP4 is a procedural language with a very half-assed set of OOP features. PHP5 is an attempt to add some real OOP features to the language (protected methods and member data, interfaces, abstract classes, ...). These are things that true OOP languages actually have.

The real question isn't even really about PHP4 or PHP5, it's about your preference for object-oriented programming. If you want to switch to PHP5, research OOP first (or while you make the transition). This area of software engineering has been so heavily researched that you should be able to be able to find an endless amount of documents that discuss OOP programming in general (there isn't much documentation related to PHP5 itself on OOP, but even reading articles that cover OOP with C++ or Java examples can still be very good at demonstrating the key points).

If you plan on using PHP5 because it's the latest, and not because you want to make use of the new OOP features, then just stick with PHP4 until you understand, and ultimately prefer -- like all the best programmers do -- object-oriented programming.
INDK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2005, 07:46 PM   #19
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
fris# php -v
PHP 4.3.11 (cli) (built: May 20 2005 05:30:13)
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-30-2005, 07:14 PM   #20
Sams_gfy
Confirmed User
 
Join Date: Aug 2004
Location: in your imagination...
Posts: 491
php4

__________________
Work with PPC SE ( Umax, 3FN Marketing) and GET PAID FOR EVERY CLICK !!!
Next step after PPC - Pay Per Lead/Action
Good, filtered traffic: Chocker, Traffic Holder || My favourite hosting: HQ Host
Sams_gfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2005, 01:42 PM   #21
eskimoen
Confirmed User
 
Join Date: May 2001
Location: Denmark
Posts: 146
Quote:
Originally Posted by etech
Its very nice that PHP became much more Object Oriented, but it's still very buggy
Have you experienced bugs when using OOP in PHP5? Which classes? The new PDO? I have not come across a bug yet..

Quote:
Originally Posted by mrthumbs
ill probably be using php4 for the upcoming 3-5 years. No joke.
Why do you say that? I bet PHP4 will not be fully maintained in a year. Im actually not sure if its already the case. PHP5 will take over, so bug fixes and security patch for PHP5 and Zend Engine 2 will be first priority.


Nice post INDK. Thanks for your support

If you want to read more on PHP5 take a look at http://www.devx.com/webdev/Article/10007/ .

See http://php.net/manual/en/faq.migration5.php for a FAQ when migrating from PHP 4 to PHP 5.
eskimoen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2005, 01:52 PM   #22
Intrigue
Confirmed User
 
Join Date: Feb 2004
Location: Ohio, US
Posts: 662
I Personally Prefer php 5 for anything of my own, however the large number of people that are misinformed about 5 and are clinging to 4 because 5 is 'new and too buggy' or 'the only better thing in 5 is OOP stuff' etc... are causing me to code everything for anyone else in 4, i can't wait until people get their heads outta their asses and 5 is the standard install tho
Intrigue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-31-2005, 01:54 PM   #23
boner 2.0
Too lazy to set a custom title
 
Join Date: Jul 2004
Posts: 10,970
Apache 1.3.33 and PHP 4.3.11 here
__________________
boner 2.0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2005, 07:04 AM   #24
eskimoen
Confirmed User
 
Join Date: May 2001
Location: Denmark
Posts: 146
Thanks for votes. Keep them coming
__________________
Click here to catch hitbots!!

eskimoen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2005, 07:26 AM   #25
TheSwed
Confirmed User
 
TheSwed's Avatar
 
Join Date: Feb 2004
Location: Sweden.
Posts: 3,483
4.3.11 here
TheSwed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.