PHP FAQs and Stickies
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP DevelopmentPHP FAQs and Stickies

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 3 votes, 3.67 average. Display Modes
 
Unread Dev Shed Forums Sponsor:
  #46  
Old July 19th, 2005, 12:57 PM
codergeek42 codergeek42 is offline
Brony & F/OSS Advocate
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jul 2003
Location: Anaheim, CA (USA)
Posts: 6,638 codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 39542 Folding Title: Starter FolderFolding Points: 39542 Folding Title: Starter Folder
Time spent in forums: 1 Month 2 Weeks 6 Days 1 h 33 m 38 sec
Reputation Power: 2474
Send a message via ICQ to codergeek42 Send a message via AIM to codergeek42 Send a message via Yahoo to codergeek42 Send a message via Google Talk to codergeek42
Facebook
5.1 Beta 3 is in the wild. Go grab a copy of the Source tarball from your favorite mirror.
__________________
~~ Peter ~~ :: ( Who am I? ) :: ( Peter's Musings: Uploading myself, bit by bit... ) :: ( Electronic Frontier Foundation ) :: ( I'm a GNU/Linux addict and Free Software Advocate. ) :: ( How to Ask Questions the Smart Way ) :: ( The Fedora Project, sponsored by Red Hat ) :: ( GNOME: The Free Software Desktop Project ) :: ( GnuPG Public Key ) :: ( About me on the WIki )

Reply With Quote
  #47  
Old November 6th, 2005, 10:27 AM
PC_Freak PC_Freak is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Belgium
Posts: 11 PC_Freak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 48 m 28 sec
Reputation Power: 0
Send a message via ICQ to PC_Freak Send a message via MSN to PC_Freak
Lightbulb

Since PHP 5.1 downloads have disappeared without a notice from the downloads page, 5.1 RC's can be found here:

http://downloads.php.net/ilia/

Last edited by codergeek42 : February 16th, 2006 at 11:14 AM. Reason: Made link active/"clickable".

Reply With Quote
  #48  
Old March 17th, 2006, 01:49 AM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned (not really)
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 1999
Location: Brussels, Belgium
Posts: 14,628 Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)Sepodati User rank is General 51st Grade (Above 100000 Reputation Level)  Folding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced FolderFolding Points: 97169 Folding Title: Advanced Folder
Time spent in forums: 3 Months 6 Days 2 h 39 m 6 sec
Reputation Power: 4375
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
This was posted on Slashdot, but some IBM developers put out a list of recommended PHP reading that has a lot of good resources in it. It's worth checking out.

http://www-128.ibm.com/developerwor...ry/os-php-read/

---John Holmes...
__________________
-- Cigars, whiskey and wild, wild women. --

Reply With Quote
  #49  
Old March 22nd, 2006, 05:32 PM
aaroncampbell aaroncampbell is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Posts: 79 aaroncampbell User rank is Corporal (100 - 500 Reputation Level)aaroncampbell User rank is Corporal (100 - 500 Reputation Level)aaroncampbell User rank is Corporal (100 - 500 Reputation Level)aaroncampbell User rank is Corporal (100 - 500 Reputation Level) 
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...

Reply With Quote
  #50  
Old September 5th, 2007, 08:36 AM
b3n's Avatar
b3n b3n is offline
Prisoner of the Sun
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jul 2004
Location: The Mews At Windsor Heights
Posts: 5,309 b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 4 Days 8 h 2 m 23 sec
Reputation Power: 2349
Facebook Orkut
__________________
.
:: 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

Reply With Quote
  #51  
Old September 5th, 2007, 10:05 AM
aaroncampbell aaroncampbell is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Posts: 79 aaroncampbell User rank is Corporal (100 - 500 Reputation Level)aaroncampbell User rank is Corporal (100 - 500 Reputation Level)aaroncampbell User rank is Corporal (100 - 500 Reputation Level)aaroncampbell User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 29 m 59 sec
Reputation Power: 10
Quote:
Originally Posted by b3n

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.

Reply With Quote
  #52  
Old September 6th, 2007, 10:50 AM
b3n's Avatar
b3n b3n is offline
Prisoner of the Sun
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jul 2004
Location: The Mews At Windsor Heights
Posts: 5,309 b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 4 Days 8 h 2 m 23 sec
Reputation Power: 2349
Facebook Orkut
I think it would be good if we could assemble a list of open source apps. that are written in PHP5.

Reply With Quote
  #53  
Old September 6th, 2007, 09:06 PM
aaroncampbell aaroncampbell is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Posts: 79 aaroncampbell User rank is Corporal (100 - 500 Reputation Level)aaroncampbell User rank is Corporal (100 - 500 Reputation Level)aaroncampbell User rank is Corporal (100 - 500 Reputation Level)aaroncampbell User rank is Corporal (100 - 500 Reputation Level) 
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.

Reply With Quote
  #54  
Old January 17th, 2008, 03:35 AM
noora_1 noora_1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 2 noora_1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 3 sec
Reputation Power: 0
nice artcle thanks

Reply With Quote
  #55  
Old April 29th, 2008, 11:02 AM
Xenonsoft Xenonsoft is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 Xenonsoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #56  
Old June 22nd, 2008, 06:25 PM
GH4 GH4 is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 74 GH4 User rank is Corporal (100 - 500 Reputation Level)GH4 User rank is Corporal (100 - 500 Reputation Level)GH4 User rank is Corporal (100 - 500 Reputation Level)GH4 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 18 h 29 m 33 sec
Reputation Power: 0
Send a message via AIM to GH4
MySpace
Thanks for the useful links guys

Reply With Quote
  #57  
Old September 19th, 2008, 01:06 PM
b3n's Avatar
b3n b3n is offline
Prisoner of the Sun
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jul 2004
Location: The Mews At Windsor Heights
Posts: 5,309 b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level)b3n User rank is General 21st Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 4 Days 8 h 2 m 23 sec
Reputation Power: 2349
Facebook Orkut

Reply With Quote
  #58  
Old September 19th, 2008, 01:23 PM
ryon420's Avatar
ryon420 ryon420 is offline
Permanently Banned
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2006
Location: In a whale
Posts: 4,147 ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)ryon420 User rank is General 35th Grade (Above 100000 Reputation Level)  Folding Points: 1496 Folding Title: Novice Folder
Time spent in forums: 9 Months 2 Days 9 h 44 m 16 sec
Warnings Level: 10
Reputation Power: 0
Send a message via MSN to ryon420 Send a message via Google Talk to ryon420
Quote:
Originally Posted by b3n


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...

Reply With Quote
  #59  
Old September 19th, 2008, 05:12 PM
requinix's Avatar
requinix requinix is offline
Still alive
Click here for more information.
 
Join Date: Mar 2007
Location: Washington, USA
Posts: 12,700 requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)  Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Months 1 Week 4 Days 5 h 25 m 44 sec
Reputation Power: 8969
Send a message via AIM to requinix Send a message via MSN to requinix Send a message via Yahoo to requinix Send a message via Google Talk to requinix
Quote:
Originally Posted by b3n

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.

Reply With Quote
  #60  
Old September 19th, 2008, 06:46 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,931 E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 7 h 49 m 26 sec
Reputation Power: 7053
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.

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsProgramming LanguagesPHP DevelopmentPHP FAQs and Stickies > PHP5/Zend 2.0 - Resources

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap