 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

July 19th, 2005, 12:57 PM
|
|
Brony & F/OSS Advocate
|
|
Join Date: Jul 2003
Location: Anaheim, CA (USA)
|
|
5.1 Beta 3 is in the wild. Go grab a copy of the Source tarball from your favorite mirror. 
|

November 6th, 2005, 10:27 AM
|
|
Registered User
|
|
Join Date: Sep 2003
Location: Belgium
Posts: 11
Time spent in forums: 12 h 48 m 28 sec
Reputation Power: 0
|
|
Last edited by codergeek42 : February 16th, 2006 at 11:14 AM.
Reason: Made link active/"clickable".
|

March 17th, 2006, 01:49 AM
|
 |
Banned (not really)
|
|
Join Date: Dec 1999
Location: Brussels, Belgium
|
|
|
__________________
-- Cigars, whiskey and wild, wild women. --
|

March 22nd, 2006, 05:32 PM
|
|
Contributing User
|
|
Join Date: Dec 2005
Posts: 79
  
Time spent in forums: 20 h 29 m 59 sec
Reputation Power: 10
|
|
|
Does anyone have good places to look for PHP5 classes that would be useful? It seems that finding PHP5 classes is like happening across a needle in a haystack of PHP4 classes...
|

September 5th, 2007, 08:36 AM
|
 |
Prisoner of the Sun
|
|
Join Date: Jul 2004
Location: The Mews At Windsor Heights
|
|
__________________
.
:: My blip.fm tunes :: Web Design Feeds :: Web Dev Feeds :: CheatSheets :: PHP :: MySQL :: 13 Moon FB App.
"All matter is merely energy condensed to a slow vibration. We are all one consciousness experiencing itself - subjectively. There is no such thing as death, life is only a dream. We are the imaginations of ourselves."
- Bill Hicks
"Truth is hidden in the subtle nature of the heart of everything, although it is invisible. One cannot see it from inside and neither from the surface. One can only live and experience it."
- Heart Sutra
|

September 5th, 2007, 10:05 AM
|
|
Contributing User
|
|
Join Date: Dec 2005
Posts: 79
  
Time spent in forums: 20 h 29 m 59 sec
Reputation Power: 10
|
|
That's a very good point. I had long since forgot about this thread, and until I found Zend Framework, I had given up on finding anything, I custom wrote pretty much everything. However, especially since Zend Framework went 1.0.0, it's been great. I use it for pretty much everything now.
|

September 6th, 2007, 10:50 AM
|
 |
Prisoner of the Sun
|
|
Join Date: Jul 2004
Location: The Mews At Windsor Heights
|
|
|
I think it would be good if we could assemble a list of open source apps. that are written in PHP5.
|

September 6th, 2007, 09:06 PM
|
|
Contributing User
|
|
Join Date: Dec 2005
Posts: 79
  
Time spent in forums: 20 h 29 m 59 sec
Reputation Power: 10
|
|
Keep checking GoPHP5 for a list of PHP5 or soon-to-be PHP5 applications.
|

January 17th, 2008, 03:35 AM
|
|
Registered User
|
|
Join Date: Jan 2008
Posts: 2
Time spent in forums: 50 m 3 sec
Reputation Power: 0
|
|
|
nice artcle thanks
|

April 29th, 2008, 11:02 AM
|
|
Registered User
|
|
Join Date: Apr 2008
Posts: 1
Time spent in forums: 45 m 46 sec
Reputation Power: 0
|
|
I would like to recommend PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide by Larry Ullman on PHP and MySQL. It's very easy to read, and although I've only got around 70 pages through, I am finding it very easy to learn.
If this has already been recommended, I'm just backing up that recommendation 
|

June 22nd, 2008, 06:25 PM
|
|
Banned
|
|
Join Date: Jun 2008
Posts: 74
  
Time spent in forums: 18 h 29 m 33 sec
Reputation Power: 0
|
|
|
Thanks for the useful links guys
|

September 19th, 2008, 01:06 PM
|
 |
Prisoner of the Sun
|
|
Join Date: Jul 2004
Location: The Mews At Windsor Heights
|
|
|

September 19th, 2008, 01:23 PM
|
 |
Permanently Banned
|
|
Join Date: Jun 2006
Location: In a whale
|
|
Good tips, although, some of them I didn't quite understand. I wish they would have told why it was bad to do some things...
This one kind of made me laugh...
Quote: | # A PHP script will be served at least 2-10 times slower than a static HTML page by Apache. Try to use more static HTML pages and fewer scripts. |
Hey, Jonathan [Sampson], buddy: didn't you have a friend who observed this law?
Last edited by ryon420 : September 19th, 2008 at 01:26 PM.
Reason: Getting rid of the evidence that I can't code...
|

September 19th, 2008, 05:12 PM
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
My opinion: he emphasizes speed over much anything else. Much of what he mentions only give you small increases in speed.
If speed is really that important to you then you probably shouldn't be using PHP.
I'd be nice if he explained why we shouldn't use magic methods. They are very handy.
I don't like his tip about using static on class functions just to make them faster. Defeats the purpose of OOD.
The one about derived functions being faster than base functions implies that you should override functions in children. What?
You can't put variables in '-quoted strings, yes, but PHP still has to scan each character; there's just a couple fewer characters it has to look for.
PHP does cache scripts to an extent, but it's not as good as (for example) that one PEAR extension.
Using isset($var[offset]) to check string length isn't completely reliable, as ries mentions in his comment.
But many of the things he mentions are good. String functions are faster than regular expressions, use commas with echo instead of concatenation, initialize variables used in conditions in for loops before the loop (or in the initialization part)...
Didn't mention output buffering though.
|

September 19th, 2008, 06:46 PM
|
 |
Lost in code
|
|
|
|
Quote:
My opinion: he emphasizes speed over much anything else. Much of what he mentions only give you small increases in speed.
If speed is really that important to you then you probably shouldn't be using PHP. |
Yeah he definitely prefers speed over flexibility. You could look at it either way though; you could think "since php is already slow as hell saving a few processor cycles isn't worth it" or you could think "since php is already slow as hell I need to save as many processor cycles as I can".
I already use most of the optimizations that are reasonable and don't negatively affect the flexibility of my code. For example, I use '' by habit when writing strings without variables since it's not any more difficult than typing "" and it's a very minor change if I need to go back and use variables in the string.
Quote: | I'd be nice if he explained why we shouldn't use magic methods. They are very handy. |
I assume it's because the magic methods require PHP to perform an extra step when calling a function (which, if you compare it to incrementing a local variable, is costly lol). Magic methods are not something I am willing to sacrifice for performance. They are far too useful and the extra processor cycles are well worth it.
The article does have a lot of useful advice that's worth keeping in mind. But one of the biggest mistakes a programmer can make is making their code more difficult to maintain so that it runs a few microseconds faster and a lot of the suggestions will result in that happening.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|