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

Jani Hartikainen's Blog:
Three PHP mistakes that will cause you debugging nightmares
Jan 22, 2009 @ 18:51:50

Jani Hartikainen has posted about three simple, but hard to find, mistakes that can cause you endless frustration if you're not looking in the right places.

Here's his list:

  • Semicolon after a while - a small problem with big (infinitely looping) consequences)
  • empty() and magic __get method - __get will hit first, then empty
  • Missing semicolon after break or continue - a classic that can make switches and evaluations difficult to debug

Comments on the post include a few others: working with variables by reference, comparisons with == versus === and strpos finding the first character in a string.

tagged: mistake semicolon empty magic break continue debug nightmare

Link:

Justin Silverton's Blog:
5 reasons why oscommerce is a nightmare
Sep 06, 2006 @ 11:44:07

On the High Performance PHP blog today, Justin Silverton has posted a few thoughts on why he thinks "oscommerce is a nightmare".

He quotes from the oscommerce.com site about what their goal for the software is and the methods they're working at to achieve those goals. Then comes his reasons for not wanting to use their software - five of them on differing subjects:

  • no separation of logic and presentation
  • difficult to integrate into an existing design
  • security
  • cannot have multiple sizes of image previews
  • admin navigation issues
He offers a bit of explaination for each of these, backing up his opinion with a few facts.

tagged: oscommerce nightmare logic presentation integration security navigation oscommerce nightmare logic presentation integration security navigation

Link:

Justin Silverton's Blog:
5 reasons why oscommerce is a nightmare
Sep 06, 2006 @ 11:44:07

On the High Performance PHP blog today, Justin Silverton has posted a few thoughts on why he thinks "oscommerce is a nightmare".

He quotes from the oscommerce.com site about what their goal for the software is and the methods they're working at to achieve those goals. Then comes his reasons for not wanting to use their software - five of them on differing subjects:

  • no separation of logic and presentation
  • difficult to integrate into an existing design
  • security
  • cannot have multiple sizes of image previews
  • admin navigation issues
He offers a bit of explaination for each of these, backing up his opinion with a few facts.

tagged: oscommerce nightmare logic presentation integration security navigation oscommerce nightmare logic presentation integration security navigation

Link:


Trending Topics: