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

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


SitePoint Web Tech Blog:
OSCON 2006 Gettting Rich with PHP5
July 27, 2006 @ 13:51:14

In another report from this year's O'Reilly Open Source Convention, Kevin Yank has covered Rasmus Lerdorf's talk - "Getting Rich with PHP 5" - a look at building rich web applications in PHP5.

PHP's creator, Rasmus Lerdorf, gave a surprising talk on building PHP rich web applications using PHP5-suprising, because fully half the talk focused on low-level PHP optimization techniques. The slides are available online.

Kevin gives an overview of the talk, mentioning some of Rasmus' examples, the bottlenecks he defined, and the time spent on the new functionality in the PHP 5 series.

0 comments voice your opinion now!
getting rich php5 web application optimization bottlenecks features getting rich php5 web application optimization bottlenecks features


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!


package tool laravel security symfony release voicesoftheelephpant opinion library interview introduction language install composer framework community update podcast version series

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