News Feed
Jobs Feed
Sections




News Archive
feed this:

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

SitePoint PHP Blog:
Composer Cheatsheet
April 01, 2014 @ 11:22:35

The SitePoint PHP blog has a new post from Matthew Setter today sharing a Composer cheatsheet he recently discovered with an example of the common commands and "composer.json" file structure.

Unless you've been living under a rock, today's PHP isn't your grandmother's PHP; it's an entirely different, much more elegant and mature language with countless improvements and additions. One of the key additions is Composer, the de facto standard for managing PHP project dependencies which, by default, gives you access to hundreds of ready-made libraries, via Packagist.org.

He goes through the parts of the guide, introducing some of the commands and covering the details of the full "composer.json" JSON structure. There's also a video introduction if you'd like the more visual version.

0 comments voice your opinion now!
composer cheatsheet introduction commands json structure

Link: http://www.sitepoint.com/composer-cheatsheet

Jim Bird:
How to Cheat at Application Security
September 13, 2012 @ 10:42:22

Jim Bird has a new post with links to a few different resources helping you "cheat" at application security - links to cheat sheets with highlights of key points to keep an eye out for.

Developers need to know a lot in order to build secure applications. Some of this is good software engineering and defensive design and programming - using (safe) APIs properly, carefully checking for errors and exceptions, adding diagnostics and logging, and never trusting anything from outside of your code (including data and other people's code). But there are also lots of technical details about security weaknesses and vulnerabilities in different architectures and platforms and technology-specific risks that you have to understand and that you have to make sure that you deal with properly. Even appsec specialists have trouble keeping up with all of it.

He links to several of the OWASP cheat sheets for things like:

0 comments voice your opinion now!
cheatsheet application security owasp list


PHPMaster.com:
PHP Security Cross-Site Scripting Attacks (XSS)
May 01, 2012 @ 11:59:28

PHPMaster.com has a new tutorial posted today (by George Fekete) about preventing cross-site scripting attacks in your PHP-based applications.

Unfortunately, cross-site scripting attacks occurs mostly, because developers are failing to deliver secure code. Every PHP programmer has the responsibility to understand how attacks can be carried out against their PHP scripts to exploit possible security vulnerabilities. Reading this article, you'll find out more about cross-site scripting attacks and how to prevent them in your code.

Included in the tutorial is an example with a simple form and definitions of different types of XSS attacks - reflected XSS, persistent XSS and three ways to prevent them: data filtering, output filtering and data validation. He also links to a few "cheatsheets" to help even more (including this guide and a Zend Framework set of XSS test data.

0 comments voice your opinion now!
tutorial security xss filter validate data output cheatsheet


Mayflower Blog:
Zend Framework Application.ini Cheat Sheet
February 06, 2012 @ 11:42:22

On the Mayflower blog today there's a new post sharing a Zend Framework application.ini "cheat sheet" with links to pages in the ZF manual explaining the details about each of the front controller options.

All this is long gone in the past since the introduction of Zend_Application and the bootstrapping resource adapters. Zend introduced a standard bootstrapping mechanism into their framework. Many of the options from different framework components can now be configured in the applications configuration file application.ini. One problem persists although: the documentation. All the parameters for components like View, Session, Database etc. are documented either with the bootstrap resource, the component itself or both.

They've posted it to github complete with sections detailing:

  • CacheManager
  • Db
  • FrontController
  • Layout
  • Navigation
  • Router
  • Translate

...and quite a few more. This is a great reference for anyone using the Zend Framework, no matter your experience level.

0 comments voice your opinion now!
zendframework applicationini cheatsheet configuration reference


Sudheer Satyanarayana's Blog:
Zend Date Class Constants Cheat Sheet
December 28, 2010 @ 10:04:21

Sudheer Satyanarayana has provided a handy cheat sheet for those using the Zend_Date component of the Zend Framework listing the default values of the constants it provides.

Date and time handling in general is a problem in programming. For PHP programmers, there's a good library out there that performs all the difficult tasks and provides convenient APIs. Zend_Date has several constants defined. It is good to know what each one of them represents.

You can either come back to this post if you need a reference or you can download the PDF and have it right at your fingertips.

0 comments voice your opinion now!
zenddate zendframework constants cheatsheet pdf


Smashing Magaine:
Drupal Cheat Sheet Desktop Wallpaper
June 15, 2010 @ 10:29:11

If you're a Drupal developer and find yourself constantly referring back to the documentation when using some of the more popular variables for the system, you should check out this new wallpaper over on Smashing Magazine that will put that information at your fingertips.

In this post we release a yet another freebie: a Drupal Cheat Sheet Desktop Wallpaper, a desktop wallpaper that features most popular variables of the open source content management system Drupal. The wallpaper was created by Giovanni Scala for Smashing Magazine and its readers.

There's multiple sizes you can download for several of the popular resolutions like 1024x768, 1440x900 and 1920x1200. The cheatsheet describes the Page.tpl.php, Node.tpl.php, Comment.tpl.php, Nlock.tpl.php and Box.tpl.php interfaces.

0 comments voice your opinion now!
drupal cheatsheet wallpaper download


Brian Swan's Blog:
SQL Server Driver for PHP Cheat Sheet
March 03, 2010 @ 09:14:55

Following in the steps of some of his previous posts looking at the combination of PHP and SQL Server, Brian Swan has a new post to his MSDN blog today - a SQL Server driver cheat sheet.

You might think that I would know the driver API by heart at this point, but alas, my many trips back to the documentation are proof that my brain is like a fixed length queue - if something new goes in, something else must go out. So, I've created a cheat sheet that saves me some of those trips to the documentation. I'm hoping that others might find it helpful too

He mentions a few things that make the sheet particularly useful - signatures for the functions are included but not the type info for the parameters, a list of PHPTYPE constants, FETCH constants (for the return type) and CURSOR constants (for defining cursor return type). You can see a preview of it here (as a PNG) and grab the actual sheet here as a PDF.

0 comments voice your opinion now!
sqlserver driver cheatsheet reference pdf


Developer Tutorials Blog:
Learn regular expressions in PHP
May 01, 2008 @ 08:48:05

On the Developer Tutorials blog, Akash Mehta offers some suggestions of resources and methods for learning how to use regular expressions in your PHP applications.

When it comes to quickly dealing with large blocks of data, batch processing operations or screen scraping, regular expressions are often the most effective solution. There's just one problem, though - learning them can be as hard as learning a new language altogether. Here's how to get off to a flying start.

He points you first in the direction of the preg_* functions then towards a few examples (like with mod_rewrite) and tools to help you understand how things match, like the regex tested extension for firefox and the regular expression cheat sheet on AddedBytes.com.

0 comments voice your opinion now!
learn regular expression preg firefox extension cheatsheet


TechTarget.com:
Our Favorite Cheat Sheets
June 14, 2007 @ 09:45:00

Via Lifehacker today, there's a link to a huge list of cheat sheets on just about any topics you can think of, both web-related and not.

Included in the list are several PHP-related ones, including:

There's tons more where that came from including lots of other web-related ones for CSS, HTML, Javascript and the like. Check out this page on techtarget.com for the full listing.

1 comment voice your opinion now!
cheatsheet css html javascript topic language cheatsheet css html javascript topic language


John Cox's Blog:
IIS / Apache $_SERVER Comparison (cheatsheet)
November 09, 2005 @ 06:22:51

With the obvious differences that come with using two different OSes, there are some that are a bit more subtle - like the values in PHP of $_SERVER between IIS and Apache. John Cox tackles this in this latest post on his blog.

I think one of the most frustrating things about web development is designing applications for multiple platforms. Whether my frustrations lie with developing applications for multiple PHP versions with multiple cache systems or designing CSS for multiple browsers, nothing is more frustrating than having applications work on multiple server software. That is why I absolutely love every cheat sheet that I can run across for these situations.

This cheatsheet lists just about every $_SERVER value I can think of and where its supported (between Apache, Apache SSL, IIS, and IIS SSL). They've also marked the ones in bold that are availible consistently across all of the setups...

0 comments voice your opinion now!
cheatsheet server variables apache IIS cheatsheet server variables apache IIS



Community Events











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


install application introduction podcast performance facebook language symfony2 composer release opinion package support unittest database framework hhvm security component hack

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