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

Bigcommerce Engineering Blog:
PHP Memory Optimization
May 22, 2015 @ 08:18:12

On the Bigcommerce Engineering blog there's a new post sharing a few tips for memory optimization in your PHP applications. This includes tips you can implement at a code level without too many changes to the server or the need for external services.

Lately, I've been working on optimizing the memory of some of our backend PHP applications and wanted to share some of the tricks that I have come across, especially dealing with large set of data using PHP.

Each of their tips includes code to illustrate the technique:

  • Always cap your internal in-memory caching
  • Use layered caching
  • (Freeing) DB Resources
  • Free large blocks of memory

Some of the examples include output from the scripts showing the reduction (or non-growth) of the peak memory usage of the script.

0 comments voice your opinion now!
memory optimization tips caching resources free

Link: http://bigeng.io/post/119546277718/php-memory-optimization

Reddit.com:
Frameworks, how are requests per second important?
April 03, 2015 @ 10:37:50

In this recent post to the /r/php subreddit on Reddit.com, AfterNite wonders why it's important to measure the "requests per second" that a framework handles (or if it is at all).

I have been using Laravel 4 for a while now. Recently I saw a benchmark here (http://blog.a-way-out.net/blog/2015/03/27/php-framework-benchmark/). There are many frameworks that were compared and compared to phalcon the requests per second seem crappy. Hearing that zend is powerful and primarily aimed at businesses how is it that a few hundred requests per second is good? I can't wrap my head around why people are using frameworks such as Zend, Laravel 5 and Symfony.

The comments on the post mention things like:

  • taking benchmarks "with a grain of salt"
  • How it relates to optimization
  • Wondering what the mean requests-per-second would be
  • What effect a datasource has on performance
  • The relation between performance and ease of use

You can read the full post or leave an opinion of your own on the full post.

0 comments voice your opinion now!
requestspersecond performance optimization framework opinion reddit

Link: http://www.reddit.com/r/PHP/comments/313nc8/frameworks_how_are_requests_per_second_important/

PHPBuilder.com:
Implementing Automatic Database Backup and Optimization in PHP
November 27, 2013 @ 10:52:31

On PHPBuilder.com today they have a new article posted sharing a few different methods you can use to do backups of your (MySQL) database and a few handy tricks/tools you can use to optimize it as well.

Every computer system has a backup. Nevertheless, the number of problems caused by a lack of a recent backup is huge. One of the reasons for that may be the fact that the backup process is not entirely automated. So, let's see how to automate the database backup process in PHP.

There's three recommendations for the (simple) database backup that can produce a file of the current database contents - mysqldump, mysqlhostcopy and a "SELECT INTO OUTFILE" statement. On the optimization size they suggest mysqlcheck, an OPTIMIZE query to help find trouble spots. There's a script included at the end showing how these methods can be combined into a simple PHP script, something that can easily be dropped into a cron job to perform every so often.

0 comments voice your opinion now!
automatic database backup optimization

Link: http://www.phpbuilder.com/articles/databases/mysql/implementing-automatic-database-backup-and-optimization-in-php.html

PHPClasses.org:
Lately in PHP Podcast - Episode #25 The 7 Main Optimizations of PHP 5.4
July 04, 2012 @ 18:57:37

In this new episode of the "Lately in PHP" podcast, Manuel Lemos and Gustavo Lopes (a core PHP developer) talk about some of the latest enhancements in the PHP 5.4.x releases.

The PHP 5.4 includes 7 main optimizations that made PHP work more efficiently in terms of the speed and memory usage efficiency. That is the main topic discussed in episode 25 of the Lately in PHP podcast on which Manuel Lemos received Gustavo Lopes, a PHP core developer.

You can either listen to this latest episode through the in-page player, by subscribing to the blog's feed. Additionally, you can also watch the video of the interview as recorded via Google Hangouts.

0 comments voice your opinion now!
latelyinphp podcast optimization video phpclasses


PHPClasses.org:
The Secret PHP Optimization of version 5.4
June 14, 2012 @ 12:12:42

In this new post from Manuel Lemos on the PHPClasses.org blog about some of the performance enhancements that were introduced in the latest PHP releases (the 5.4.x series) including variable access optimization.

PHP 5.4 introduced several performance optimizations. One of them was not discussed much in the PHP community but it may affect the performance of your code depending on the way you write it.

He gets into some of the details surrounding the variable access optimization, pointing out how to get the most out of this improvement. He also does a bit of speculation about future versions of the language, including the possible introduction of "Just In Time" compilers.

0 comments voice your opinion now!
optimization version variable access object property


NETTUTS.com:
Your First WordPress Plugin Simple Optimization
June 01, 2010 @ 09:47:13

On NETTUTS.com today there's a new tutorial introducing you to the world of WordPress plugins by helping your create your first plugin - an optimization plugin that will help with things like page load time and general SEO.

This tutorial is going to assume that you have at least a beginner's understanding of PHP and the WordPress syntax. Though we'll be covering everything, some knowledge beforehand will help you grasp the concepts much more easily. I'll also assumes that you have a WP blog setup and ready to go.

The plugin takes out useless meta tags, unloads unneeded filters and handles some SEO work like adding tags and an excerpt into the post's header information. The break the plugin down into the different parts and include the code to get each of them working including a call to optimize all of the tables in your current WordPress install's database.

3 comments voice your opinion now!
wordpress plugin optimization tutorial


P'unk Avenue Blog:
Faster, PHP! Kill! Kill!
March 17, 2010 @ 16:36:30

On the P'unk Avenue blog there's a recent post from Tom Boutell looking at optimizing PHP applications and how you can cope with the possibility of "Serious Traffic" that might come your way.

PHP is easy...as programming languages go, that is. You can build sites in a real hurry. [...] Still, sooner or later success catches up with you and you want your site to cope with Serious Traffic...or cope with moderate traffic on a cheap virtual machine...or at the very least, not be dog-slow with just a handful of users on the system.

He mentions things that can slow down the application (like timeouts on web server connections or not optimizing the site with a "thin" server for non-PHP requests). He mentions the alternative PHP cache (APC) as one possible way to help, some tips on making your Apache server more efficient and pushing those lighter requests off to a smaller, built-for-speed server using FastCGI.

0 comments voice your opinion now!
optimization fastcgi apc apache request


Padraic Brady's Blog:
Zend Framework Surviving The Deep End - Performance Optimisation
January 12, 2009 @ 07:52:02

Padraic Brady has posted the appendix for his book "Zend Framework: Surviving the Deep End" that can be found here.

This week's chapters explores some of the performance issues and tactics worth being aware of when developing Zend Framework, and indeed other, applications. It's a rather long piece of work but I hope it proves enlightening. Comments are, as usual, welcome and you can attach them to any paragraph in need of attention.

Next up will be a chapter focusing on the Model portion of the MVC structure, so keep an eye to his blog for more chapters as they're released.

0 comments voice your opinion now!
performance optimization zendframework book application model


Michael Kimsal's Blog:
Forget SEO - what about Test Optimization?
June 03, 2008 @ 08:49:37

In a new post today, Michael Kimsal walks through the procoess he followed to try and get the most optimized testing environment he could around a WordPress installation he already has set up.

I've recently been working on a project trying to take an existing customized wordpress site and create automated integration tests around parts of it. I'm using phpUnderControl, phpUnit, Selenium RC, Firefox, Xvfb (virtual frame buffer) and...well, I think that's it.

He mentions the two issues he came across, both with the WordPress software (the "siteurl" setting and the pathing for the templates). He recommends that application code be portable to avoid problems like these. Applications that can be dropped in anywhere and "just work" can help not only make life easier for the installer but also for the tester.

0 comments voice your opinion now!
test optimization unittest phpunit wordpress install problem


Zend Developer Zone:
Book Review Professional Search Engine Optimization with PHP
July 13, 2007 @ 16:19:00

On the Zend Developer Zone today, Cal Evans has posted a review of one of Wrox Press' latest PHP-related offerings, "Professional Search Engine Optimization with PHP" (by >Jamie Sirovich and Cristian Darie).

I'd like to say that this book has changed my way of thinking about SEO Professionals, but it hasn't. It has, however, given me enough information so that I can make my own projects more SE friendly and allow me to help my friends do the same.

Cal talks about the contents of the book, including his favorite chapter (chapter 2) that gives a quick-hit primer to the world of search engine optimization. The rest of the book is divided up into specialization topics inside of SEO like "SE Friendly URLs", "Duplicate Content" and "Link Bait". Plus, check out what Cal has to say about one of the Appendixes...

1 comment voice your opinion now!
search engine optimization wrox book review appendix search engine optimization wrox book review appendix



Community Events

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


symfony2 example podcast library release community interview php7 conference api application composer framework opinion introduction laravel performance series configure install

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