News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

CatsWhoCode.com:
10 super useful PHP snippets
April 05, 2011 @ 08:38:10

The CatsWhoCode.com blog has a new post today with what they call super useful PHP snippets that could help you out in a pinch.

Having the right code snippet at the right time can definitely be a life saver for web developers. Today, I've compiled 10 really awesome PHP code snippets that will, I hope, be very helpful in your forthcomming developments.

Their list of ten includes bits of code for:

  • Super simple page caching (file-based)
  • Convert seconds to time (years, months, days, hours...)
  • Get current weather using Google API
  • Get latitude and longitude from an address
  • Save url to PDF
2 comments voice your opinion now!
snippet useful helpful


Smashing Magazine:
10 Advanced PHP Tips Revisited
March 24, 2009 @ 13:01:37

Smashing Magazine has posted a new article from Chris Shiflett and Sean Coates with their rebuttal to the site's previous 10 Advanced Tips article.

In November 2008 we published the article 10 Advanced PHP Tips To Improve Your Programming. Apparently, according to negative comments to the post, it contained some errors and some statements that are just wrong. [...] To solve the problem, we asked Chris Shiflett and Sean Coates, two PHP gurus, to take a closer look at the article, explain its errors and make it perfectly clear what is actually right and wrong in the theory and practice. This article is a professional response to our article published a couple of months ago.

Here's the more accurate descriptions of those tips - what's good and what's bad - as presented by Chris and Sean:

  • Use an SQL Injection Cheat Sheet
  • Know the Difference Between Comparison Operators
  • Shortcut the else
  • Drop Those Brackets
  • Favor str_replace() Over ereg_replace() and preg_replace()
  • Use Ternary Operators
  • Memcached
  • Use a Framework
  • Use the Suppression Operator Correctly
  • Use isset() Instead of strlen()
1 comment voice your opinion now!
advanced tips revisit helpful article


David Hansson's Blog:
The immediacy of PHP
April 04, 2008 @ 11:21:10

As Matthew Weir O'Phinney points out, David Hansson (of Rails fame) has posted a few comments on what he calls the "immediacy of PHP".

I love the fact that it's all just self-contained. That the language includes so many helpful functions in the box. [...] PHP scales down like no other package for the web and it deserves more credit for tackling that scope.

and to that, Matthew comments:

It's nice to see leaders of projects like Rails having this same attitude. It's a breath of fresh air in the competitive market of web development frameworks.
0 comments voice your opinion now!
immediacy language web rails helpful scale


Zend Developer Zone:
Book Review PHP 5 In Practice
November 20, 2006 @ 13:11:40

Cal Evans of the Zend Developer Zone has posted a new book review for one of Sams Publishing's latest PHP-related offerings, "PHP 5 In Practice" by Elliott "Eli" White III (Senior Programmer over at digg.com.

First let me say, if you are new to PHP or programming in general, skip this book. This is not a how to or even a cookbook for simple concepts. To get the most from this book you need to have a firm grounding in programming.

He sets the tone for the rest of the interview right there, noting that most of the book is made up of little examples, helpful bits to fill a need rather than teaching you the basics (or more advanced features) of PHP as a language. Cal spotlights this kind of content by talking about the "binary tree implementation" section. Check out the rest of the review for the full story.

0 comments voice your opinion now!
book review php5 practice sams publishing eliwhite chunks helpful book review php5 practice sams publishing eliwhite chunks helpful



Community Events





Don't see your event here?
Let us know!


opinion tool release voicesoftheelephpant language security version package series podcast update introduction framework interview mvc symfony composer library community laravel

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework