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

Loïc Chardonne:
Symfony Differently - part 2: Bootstrap
Jun 16, 2015 @ 10:46:03

Loïc Chardonne has posted the latest part in his "Symfony Differently" series (part one is here) with a focus on bootstrapping the application and configuring the environment that it will live in.

Our goal in this post is to bootstrap an application to then create a search endpoint for items. We've decided to use Symfony for a single reason: our company Acme used it since the beginning and the API developers team has Symfony and PHP skills.

He walks through the steps you'll need to get the application up and running:

  • Creating a new Symfony Standard Edition project
  • Configuring Apache
  • Moving the tests to a different directory, including Composer updates
  • Creating scripts for builds, testing and deployment

With all this structure in place, the next part of the series will start in on the functionality of the search endpoint and returning the results.

tagged: symfony bootstrap differently tutorial series part2 project apache scripts tests

Link: http://gnugat.github.io/2015/06/10/sf-differently-part-2-bootstrap.html

NetTuts.com:
More Tips for Best Practices in WordPress Development
Jul 25, 2014 @ 09:18:09

NetTuts.com has published a few more WordPress tips and best practices to help you get the most out of your WordPress-based application.

Welcome to the second part of the series. In the first article, we explained the WordPress Coding Standards, how to avoid namespaces collisions, comments in the code, and some basic security tips. Today, we are going to go a bit deeper and write some more code and learn some techniques to improve performance and security of our plugins.

They look specifically at when you should include your scripts and styles, formatting Ajax calls and working with filters and actions. Code snippets are included with each point with links to some other resources for some of the topics to provide more information.

tagged: wordpress bestpractices development ajax scripts styles filters actions

Link: http://code.tutsplus.com/articles/more-tips-for-best-practices-in-wordpress-development--cms-21013

KnpLabs Blog:
Composer Level2: 5 more things like Class Maps, Forking, & Scripts
Nov 08, 2012 @ 09:17:14

On the KnpLabs blog there's a new post from Ryan Weaver sharing some cool things you can do with Composer you might not have known about when managing your application's dependencies.

For those of you that are comfortable with Composer, I wanted to talk about a few lesser-known, but really fantastic features. These are inspired by real questions I've heard while running around the country doing my one-man composer-and-dancing show (i.e. conference talks).

He shares four of them with a fifth that's more of an "upcoming feature" than a current one:

  • Autoloading & Performance: "I thought class maps were the fastest?"
  • Running Post-Deploy Scripts
  • "What if I need to fork a library?"
  • Can I host private packages on Packagist?
  • What about signing the authenticity of Packages?

That last one about package signing is still on the known issues list and is under discussion, but no doubt that future versions of the tool will support it.

tagged: composer classmap forking scripts package signing

Link:

Community News:
PerlCoders and PHP Labs Marge (with Promotion)
Sep 12, 2006 @ 16:09:24

According to this new press release, PerlCoders and PHP Labs have joined forces and become one and, to share the love with others, they're offering discounts on their offerings.

Over the last week, PerlCoders and PHP Labs have merged to offer even more professional scripts to their clients. To celebrate this merger, they are now offering a one-time special promotion for webmasters, which can save them over $300. As a small incentive for new members, PHP Labs is also offering free installation for the first script of your choice.

The press release goes on to talk about what each is bringing to the table and what they're offering from now on. The $300 promotion goes towards a membership for the site, giving you access to all 44 scripts without paying extra. Examples of the scripts include GalleryMaker, ProxyCheck, FileMailer, and CashMail. You can get more information from the promotion's page on their website.

tagged: perlcoders labs promotion deal scripts access perlcoders labs promotion deal scripts access

Link:

Community News:
PerlCoders and PHP Labs Marge (with Promotion)
Sep 12, 2006 @ 16:09:24

According to this new press release, PerlCoders and PHP Labs have joined forces and become one and, to share the love with others, they're offering discounts on their offerings.

Over the last week, PerlCoders and PHP Labs have merged to offer even more professional scripts to their clients. To celebrate this merger, they are now offering a one-time special promotion for webmasters, which can save them over $300. As a small incentive for new members, PHP Labs is also offering free installation for the first script of your choice.

The press release goes on to talk about what each is bringing to the table and what they're offering from now on. The $300 promotion goes towards a membership for the site, giving you access to all 44 scripts without paying extra. Examples of the scripts include GalleryMaker, ProxyCheck, FileMailer, and CashMail. You can get more information from the promotion's page on their website.

tagged: perlcoders labs promotion deal scripts access perlcoders labs promotion deal scripts access

Link:

Builderau.com.au:
Cache PHP scripts with APC module
Sep 06, 2006 @ 06:49:10

On the Builder AU site, there's this quick look at using the APC module (a PECL package) to help speed up your applications.

Looking to get every ounce of performance from your Web server? If you're using PHP scripts, you can easily accomplish this using PHP's APC module, which caches php opcode instead of forcing php to reinterpret every script every time it is executed.

The install is simple (on PHP5) and they show some configuration options you can use to fine-tune the performance of the module to fit your needs. There's also a brief look at what the module actually does to the scripts as they get interpreted and passed out of PHP and into the web server.

tagged: apc cache scripts module pecl install configure tutorial apc cache scripts module pecl install configure tutorial

Link:

Builderau.com.au:
Cache PHP scripts with APC module
Sep 06, 2006 @ 06:49:10

On the Builder AU site, there's this quick look at using the APC module (a PECL package) to help speed up your applications.

Looking to get every ounce of performance from your Web server? If you're using PHP scripts, you can easily accomplish this using PHP's APC module, which caches php opcode instead of forcing php to reinterpret every script every time it is executed.

The install is simple (on PHP5) and they show some configuration options you can use to fine-tune the performance of the module to fit your needs. There's also a brief look at what the module actually does to the scripts as they get interpreted and passed out of PHP and into the web server.

tagged: apc cache scripts module pecl install configure tutorial apc cache scripts module pecl install configure tutorial

Link:

Jemjabella.co.uk:
Spotting Insecure Scripts
Aug 19, 2006 @ 15:36:59

On Jemjabella.co.uk, there's a quick post with a few helpful hints of spotting the insecurity inside of some scripts.

With the current surge in "hackings" (or rather: script kiddies exploiting known holes to deface websites that don't support their view on the war) I've been going through a lot of scripts to find common and easy to fix vulnerabilities. With my fingers crossed, and perhaps a naive hope that people don't release scripts with massive holes anymore, I've been sorely disappointed.

They list out a few different things to watch out for, including potential SQL injection points and the unchecked inclusion of files via include(). It's some pretty basic stuff, so don't expect much new from the post, but it's a good reminder of some of the simple things we all, as developers, need to watch out for.

tagged: insecure scripts sql injection include filter input insecure scripts sql injection include filter input

Link:

Jemjabella.co.uk:
Spotting Insecure Scripts
Aug 19, 2006 @ 15:36:59

On Jemjabella.co.uk, there's a quick post with a few helpful hints of spotting the insecurity inside of some scripts.

With the current surge in "hackings" (or rather: script kiddies exploiting known holes to deface websites that don't support their view on the war) I've been going through a lot of scripts to find common and easy to fix vulnerabilities. With my fingers crossed, and perhaps a naive hope that people don't release scripts with massive holes anymore, I've been sorely disappointed.

They list out a few different things to watch out for, including potential SQL injection points and the unchecked inclusion of files via include(). It's some pretty basic stuff, so don't expect much new from the post, but it's a good reminder of some of the simple things we all, as developers, need to watch out for.

tagged: insecure scripts sql injection include filter input insecure scripts sql injection include filter input

Link:

Heartscripts Blog:
5 Scripts to Start a Webservice
Apr 17, 2006 @ 13:13:43

In a quick bit of linkage today, the heartscripts blog has posted a new item with references to five scripts to get you started down the road of offering services on your site.

The links are:

  • a URL shortening service
  • One-click hosting service
  • the creation of your own Amazon Bookstore
  • an image hosting service
  • the Million Pixel Page script

For each, there's a brief description given, as well as the link.

tagged: web service scripts five free web service scripts five free

Link: