News Feed
Sections




News Archive
feed this:

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

DZone.com:
MongoDB Driver Tips & Tricks PHP
June 04, 2014 @ 10:10:49

On DZone.com there's a new post from Chris Chang that's the third part of the series looking at using various language drivers for working with MongoDB. In this latest article he focuses in on the PHP driver, giving a brief introduction and a few handy tips.

This blog post is the third of a series where we are covering each of the major MongoDB drivers in depth. The driver we'll be covering here is the PHP driver, developed and maintained by the MongoDB, Inc. team (primarily @derickr, @bjori and @jmikola).

He includes a link to some basic examples and shares a "production-ready connect string" with some MongoLab recommended settings. The tips include topics ranging from working with index builds, the lowering of is_master_interval and configuring the connectionTimeoutMS setting for optimum connection handling.

0 comments voice your opinion now!
mongodb driver tips tricks mongolab index master interval connection timeout

Link: http://java.dzone.com/articles/mongodb-driver-tips-tricks-php

Software Testing Magazine:
PHPUnit Tips & Tricks
October 11, 2013 @ 09:42:44

The Software Testing Magazine site has posted some helpful tips for using PHPUnit in a new post. This is part of a series - the first post introducing PHPUnit and the second showing how to use mocks and stubs.

I have showed how to set up PHPUnit and how to get started with unit tests and how to handle mocking and stubbing objects in order to effectively isolate your code under test. This article will explore a few ways to get the most out of your PHPUnit tests.

They cover a few different topics including:

  • Working with static methods
  • Working with frameworks
  • Working with databases
  • Effective testing for current and new projects
0 comments voice your opinion now!
phpunit tips tricks advanced static framework database

Link: http://www.softwaretestingmagazine.com/knowledge/phpunit-tips-tricks/

Sven Eisenschmidt's Blog:
Symfony2 Tips
February 17, 2011 @ 12:07:15

Sven Eisenschmidt has put together a site that want to help beginners with the Symfony2 framework get up to speed quickly with some handy tips and tricks they can use in their development.

Some of the tips listed so far include:

Check out the full blog for more tips and links to presentations.

4 comments voice your opinion now!
symfony2 tips tricks presentations


Reddit.com:
Less obvious PHP tricks?
December 29, 2010 @ 11:17:10

On Reddit.com there's a recent post with a question about some of the lesser known PHP tricks that other developers might have picked up out there. The post has pulled in quite a few suggestions including:

  • Using predefined interfaces
  • The streams API
  • Defining constant defaults
  • The speed differences in reading parts of arrays
  • Boolean attribution

There's also a full discussion on closures/lambdas that no "features" post on PHP would be complete without. Have some tips to share? Add yours to the post too!

0 comments voice your opinion now!
tricks suggestion developer language


Noupe.com:
13 Great WordPress Speed Tips & Tricks for MAX Performance
March 24, 2009 @ 09:37:09

Noupe.com has posted a few tips to help you get the most out of your WordPress installation - everything from basic tweaks to database optimization.

Performance is a key factor for any successful website. And since WordPress is becoming more popular than ever, it will only be at its best when raised in the proper conditions. Here are a few things to try if you find that your WordPress site is not performing as well as it could be due to high traffic or hidden issues you don't know about.

Here's their list of tips and tricks:

  • Upgrade to latest WordPress release
  • Remove unnecessary Plugins & upgrade current ones
  • Minimize PHP and database queries
  • Optimize and Repair your Database from myPhpAdmin
  • Use Reliable image hosting service
  • Optimize your images with this great tool
  • Install WP Super Cache Plugin
  • PHP Speedy WP
  • WP CSS
  • DB Cache
  • Speed up access to your favorite frameworks via the AJAX Libraries API
  • Display page loading time + number of queries
  • Optimize DB
0 comments voice your opinion now!
tips tricks wordpress performance speed plugin database hosting


Hasin Hayder's Blog:
Started writing on Facebook cookbook blog
February 09, 2009 @ 11:14:58

Those wanting to get into Facebook development might want to check out this new site Hasin Hayder has been working on - a Facebook Cookbook (not affiliated with the O'Reilly book by the same name). He talks about it here.

So i am planning to star writing an open book (right now it is a blog, when we will have thousands or recipes we will make it a book) which will follow cookbook approach for Facebook application developers. I will highlight common problems (there are numbers of problems with no solutions in their wikis) and their solutions which I've learned in my last one and half year journey as an application developer on Facebook platform.

Several topics have already been covered including:

52 comments voice your opinion now!
facebook cookbook blog tips tricks developer platform


SitePoint:
The PHP Anthology 101 Essential Tips, Tricks & Hacks, 2nd Edition
October 30, 2007 @ 13:24:17

SitePoint publishing has released the Second Edition of their popular PHP Anthology book - "101 Essential Tips, Tricks & Hacks":

Enter, The PHP Anthology a book that proves that you don't need a computer science degree to take advantage of the powerful features of PHP 5.

Save time, and eliminate the frustration of completing PHP tasks, with this comprehensive collection of ready-to-use solutions. If you're building web applications with PHP you'll never let this book out of your sight!

Authors for this edition are PHP notables Ben Balbo, Harry Fuecks, Davey Shafik, Ligaya Turmelle and Matthew Weier O'Phinney. The book covers a huge range of topics like using strings, dates and times, working with files, image manipulation and error handling.

Check out the book's main page for a link to get a free sample of the content, too! You can order the book for either $49.90 USD (PDF and hard copy), $39.95 USD for just the hard copy or $29.95 USD for the PDF copy only.

Check out some blogs from the authors: Matthew Weir O'Phinney, Davey Shafik and Ligaya Turmelle

0 comments voice your opinion now!
sitepoint book publish anthology tips tricks hacks sitepoint book publish anthology tips tricks hacks


LoopPo Blog:
PDML PHP tricks
March 01, 2007 @ 10:48:00

A new post on the LooPo blog points out a handy PHP library to make and work with PDF files in PHP - Portable Document Markup Language (PDML).

I was curious how this works, as it seemed pretty different from previous similar libraries (PDFLib, FPDF), that offered a programmatic API to generate PDF DOMs instead of a markup language.

They describe how it works, what's included with the download and how it uses output buffering to get the job done as well as a few updates and further tips on its usage.

2 comments voice your opinion now!
pdml tricks portable document markup language pdf output buffering pdml tricks portable document markup language pdf output buffering


Dublish.com:
Simple Optimization for PHP and MySQL
June 22, 2006 @ 12:32:31

Dublish.com has this post from a little while back with some good tips on how to squeeze the most out of your MySQL and PHP scripts with some simple, handy tips.

The MySQL list includes things like:

  • MySQL is interpreted from right to left so you should put the most significant limiters as far to the right as possible.
  • Use indexes on the columns in the WHERE clause and on the columns you want to ORDER BY.
  • Sometimes mysql_free_result() end up wasting more memory than it saves. Check the difference with memory_get_usage().
  • Use NOT NULL as default value as much as you can, it speeds up execution and saves one bit.

And the PHP list includes:

  • When echoing strings it's faster to separate them by comma instead of dot.
  • Unset your variables to free memory, especially large arrays.
  • Many code blocks might slow down the interpretation a little bit.

There's also all sorts of other tips down in the comments as well.

0 comments voice your opinion now!
mysql optimization simple tips tricks mysql optimization simple tips tricks



Community Events





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


configure install developer symfony release bugfix wordpress podcast introduction code threedevsandamaybe interview application list community series api library language laravel

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