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

Brian Swan's Blog:
PDO Cheat Sheet for SQL Server Driver for PHP
Apr 22, 2010 @ 17:09:53

For those using (or wanting to use) the SQL Server driver for PHP via PDO, Brian Swan has a handy resource for you - a PDO Cheat Sheet.

With this weeks release of the SQL Server Driver for PHP 2.0 CTP 1 (which includes a PDO driver for SQL Server), I need to get up to speed quickly. And, the truth is, I’m fairly inexperienced with PDO, so a cheat sheet is helping me learn the API. Besides, there are some constants that are database specific...I don’t stand a chance of keeping those at the ready without a cheat sheet.

This cheat sheet is for this first release of the PDO driver, so it'll probably change as time goes on, but it's a good starting place. You can find out more details about the methods and constants mentioned on the PDO page of the PHP.net site.

tagged: pdo cheat sheet sqlserver driver

Link:

Scott Klarr's Blog:
PHP Cheat Sheets
Feb 08, 2008 @ 20:37:49

Scott Klarr has pulled together a listing of the top cheat sheets that he's found out there relating to PHP (and things surrounding it) like:

Check out his page for more (and thumbnails for each).

tagged: cheat sheet language smarty wordpress cakephp drupal

Link:

SitePoint PHP Blog:
The Joy of Regular Expressions [3]
Sep 27, 2006 @ 19:40:00

Harry Fuecks has gotten busy and posted the third part of his "Joy of Regular Expressions" series over on the SitePoint PHP Blog today.

Following on from the last part, this one is more of an intermission—a round up of regex syntax seen so far and a couple of links following feedback.

He looks at two different topics:

  • A "must reads" section of resources for getting the most out of regular expressions
  • A comprehensive "cheat sheet" with tips on expression delimiters, literals, pattern modifiers, character classes, quantifiers, assertions, sub-patterns, and working with the blackslash.

tagged: joy regular expression part3 read cheat sheet syntax joy regular expression part3 read cheat sheet syntax

Link:

SitePoint PHP Blog:
The Joy of Regular Expressions [3]
Sep 27, 2006 @ 19:40:00

Harry Fuecks has gotten busy and posted the third part of his "Joy of Regular Expressions" series over on the SitePoint PHP Blog today.

Following on from the last part, this one is more of an intermission—a round up of regex syntax seen so far and a couple of links following feedback.

He looks at two different topics:

  • A "must reads" section of resources for getting the most out of regular expressions
  • A comprehensive "cheat sheet" with tips on expression delimiters, literals, pattern modifiers, character classes, quantifiers, assertions, sub-patterns, and working with the blackslash.

tagged: joy regular expression part3 read cheat sheet syntax joy regular expression part3 read cheat sheet syntax

Link:

AddedBytes.com:
Regular Expressions Cheat Sheet
Sep 15, 2006 @ 12:46:23

One of the more elusive concepts of programming can be working with regular expressions. Now, there's lots of places to learn them and to get a handle on what they can do (such as this book), but what if you don't need the full-blown reference and just want a quick and dirty reference source? AddedBytes.com is happy to be of service with their latest cheat sheet divided up into the different formats (anchors, character classes, assertions, escape characters, etc).

The Regular Expressions cheat sheet is designed to be printed on an A4 sheet of paper and live by a designer or developer's desk, to make life a bit easier. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size Regular Expressions cheat sheet.

This time, they've posted it in a few different formats, including a torrent file to make for faster/easier download. They still have the usual methods (PDF and PNG) but you'll need to visit the page for those links - it's been requested not to directly link to them.

tagged: cheat sheet regular expression pdf png torrent cheat sheet regular expression pdf png torrent

Link:

AddedBytes.com:
Regular Expressions Cheat Sheet
Sep 15, 2006 @ 12:46:23

One of the more elusive concepts of programming can be working with regular expressions. Now, there's lots of places to learn them and to get a handle on what they can do (such as this book), but what if you don't need the full-blown reference and just want a quick and dirty reference source? AddedBytes.com is happy to be of service with their latest cheat sheet divided up into the different formats (anchors, character classes, assertions, escape characters, etc).

The Regular Expressions cheat sheet is designed to be printed on an A4 sheet of paper and live by a designer or developer's desk, to make life a bit easier. A description of what is on the cheat sheet follows, or if you are impatient, you can go straight to the full size Regular Expressions cheat sheet.

This time, they've posted it in a few different formats, including a torrent file to make for faster/easier download. They still have the usual methods (PDF and PNG) but you'll need to visit the page for those links - it's been requested not to directly link to them.

tagged: cheat sheet regular expression pdf png torrent cheat sheet regular expression pdf png torrent

Link:

456Bereastreet.com:
Build your own PHP style sheet switcher
Aug 24, 2006 @ 20:19:11

At the 456 Berea St blog today, there's a popular new post that demonstrates a simple (yet effective) method for switching out the style sheets on your site at the whim of the user.

Want to have a style switcher that lets your site’s visitors choose a different style sheet? Want it to work even if there is no JavaScript support? The trick is to use a server-side language like PHP, which is what I use for my style switcher.

Using PHP to let the user switch to a different CSS file is nothing new. But it is one of the things that I am often asked about, so I thought it would be good to have a write-up to refer people to in the future.

The code for the switcher is only about five lines long, implementation and all, but it's a nice, clean way to do it. It would break if the viewer didn't have cookies allowed on their system, though.

tagged: style sheet switcher simple cookie import redirect style sheet switcher simple cookie import redirect

Link:

456Bereastreet.com:
Build your own PHP style sheet switcher
Aug 24, 2006 @ 20:19:11

At the 456 Berea St blog today, there's a popular new post that demonstrates a simple (yet effective) method for switching out the style sheets on your site at the whim of the user.

Want to have a style switcher that lets your site’s visitors choose a different style sheet? Want it to work even if there is no JavaScript support? The trick is to use a server-side language like PHP, which is what I use for my style switcher.

Using PHP to let the user switch to a different CSS file is nothing new. But it is one of the things that I am often asked about, so I thought it would be good to have a write-up to refer people to in the future.

The code for the switcher is only about five lines long, implementation and all, but it's a nice, clean way to do it. It would break if the viewer didn't have cookies allowed on their system, though.

tagged: style sheet switcher simple cookie import redirect style sheet switcher simple cookie import redirect

Link:

Davey Shafik's Blog:
Filtering & Escaping Cheat Sheet
May 22, 2006 @ 10:42:23

Davey Shafik has created a cheat sheet useful for any developer out there using a database, one to remind you of the filtering and escaping techniques to use before putting data into your database or outputting it to your site.

After having two conversation on escaping data for MySQL? insertion within 5 minutes of each other in ##php@freenode, I decided to created a cheat sheet on Filtering & Escaping in general.

I think what most people are not aware of is that not just outputting to the browser is output. So it querying a database, or calling one of the exec functions, or even using the mail function (not mentioned on the cheat sheet, perhaps for v2.

You can grab the cheat sheet here in a PDF format.

tagged: filtering escaping cheat sheet pdf mysql database filtering escaping cheat sheet pdf mysql database

Link:

Davey Shafik's Blog:
Filtering & Escaping Cheat Sheet
May 22, 2006 @ 10:42:23

Davey Shafik has created a cheat sheet useful for any developer out there using a database, one to remind you of the filtering and escaping techniques to use before putting data into your database or outputting it to your site.

After having two conversation on escaping data for MySQL? insertion within 5 minutes of each other in ##php@freenode, I decided to created a cheat sheet on Filtering & Escaping in general.

I think what most people are not aware of is that not just outputting to the browser is output. So it querying a database, or calling one of the exec functions, or even using the mail function (not mentioned on the cheat sheet, perhaps for v2.

You can grab the cheat sheet here in a PDF format.

tagged: filtering escaping cheat sheet pdf mysql database filtering escaping cheat sheet pdf mysql database

Link:


Trending Topics: