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

Reinhold Weber's Blog:
40 signs you really are a lousy PHP programmer
Feb 08, 2008 @ 16:23:00

Reinhold Weber has put together a list of signs (40 in all on his "programming list of shame") that you're a lousy PHP programmer. Here's a sampling:

  • don't see the need and/or benefits of a good programming IDE like Zend Studio or Eclipse PDT
  • have never used some form of version control like Subclipse
  • don't use a consistent methodology
  • don't use test-driven development
  • don't return content but echo or print it from your functions or classes
  • return HTML, not data, strings, or objects.
  • don't allow intelligent error handling
  • you think reusable software equals/requires your code to be OOP

Now granted, some of them are a bit more high level than others, but if you're not headed towards a lot of these, you might change paths, hop out of that comfort zone and branch out into the community and the language a little bit more.

tagged: lousy programmer test optimize list oop intelligent regularexpression

Link:

Performancing.com:
HOW TO - Create Intelligent Blog Ads
Dec 20, 2005 @ 07:58:34

In a new post from Performancing.com today, Chris Garrett looks at building smarter blog ads with the help of a little PHP.

If you want to squeeze every last drop of revenue potential out of your blog without annoying your loyal visitors then you need to be a bit clever about the way you display advertising. I'm going to show you some simple PHP template code you can use to add some ad' logic to your template.

He goes through a few standards to follow first, including not showing ads to registered users and showing additional ads for visitors arriving via a search engine. He gives examples with the Google Adsense code, and sets up different kinds of ad sections - registered users, search engine users, date sensitive, and the post date of the entry...

tagged: howto create intelligent blog ads howto create intelligent blog ads

Link:

Performancing.com:
HOW TO - Create Intelligent Blog Ads
Dec 20, 2005 @ 07:58:34

In a new post from Performancing.com today, Chris Garrett looks at building smarter blog ads with the help of a little PHP.

If you want to squeeze every last drop of revenue potential out of your blog without annoying your loyal visitors then you need to be a bit clever about the way you display advertising. I'm going to show you some simple PHP template code you can use to add some ad' logic to your template.

He goes through a few standards to follow first, including not showing ads to registered users and showing additional ads for visitors arriving via a search engine. He gives examples with the Google Adsense code, and sets up different kinds of ad sections - registered users, search engine users, date sensitive, and the post date of the entry...

tagged: howto create intelligent blog ads howto create intelligent blog ads

Link: