Archive for the ‘php’ category

PHP Training: Online vs. Classroom

January 29th, 2012 Leave a comment

PHP Training: Online vs. Classroom

If you are looking to learn how to write Web applications in PHP, you may be considering online or traditional teacher-lead classrooms to help you. There can be many factors in the decision to learn PHP online or to take a class in-person, and for some, this can be a difficult decision to make. This article discusses the pros and cons of each method of PHP training to help you find the learning method that is going to suit your needs best. PHP isn’t a new programming language, and there is a wealth of information on it on… View full post »

htaccess for PHP Error Logging – An In-depth How-to

January 11th, 2012 Leave a comment 1 comment

htaccess for PHP Error Logging - An In-depth How-to

For PHP users running Apache, we often want to be able to suppress our PHP errors from visitors so we can protect and handle those errors. We also want to log those errors since error tracking is an excellent way to troubleshoot potential problems. Catching these errors and monitoring them is a better solution than trying to catch and handle them during the user’s session. This tutorial will show you how to enable PHP error logging and error handling via .htaccess. For Developers New to htaccess If you are a developer that has never used the .htaccess file, here… View full post »

Why Use PHP Caching?

January 10th, 2012 Leave a comment

Why Use PHP Caching?

In the beginning, when the Internet was new, it was easy to create fast HTML web pages that could load easily on a dial-up modem. Once a page was requested, the browser would create a cached version of the site on the computer in a temporary directory and later, should that page be requested again, it would simply serve the cached version instead of making a request to the server. This made everything much faster! Then dynamic pages came onto the scene and messed that idea up. Now we must make requests to our server every time the… View full post »

PHP Optimization Tips: Get the Most Out of Your Applications

December 19th, 2011 Leave a comment 3 comments

PHP Optimization Tips: Get the Most Out of Your Applications

Like any scripting language, PHP can be used in a variety of applications. The down-side for most programmers is that when they learn how to write PHP, they do not always learn how to write PHP with speed and optimization in mind. This article addresses five ways you can improve your code with minor changes that will yield large gains as well as teach you how to become a better PHP developer. One of the most important things you can do when improving PHP application performance is begin measuring your application to find a baseline performance time for different… View full post »

PHP Error Handling Explained

December 8th, 2011 Leave a comment

PHP Error Handling Explained

Error handling is the process of catching errors and unexpected behavior from your program and dealing with them appropriately. When developers write code they always seem to leave error handling for the end instead of making it part of the development process. Part of being a good developer is setting up your applications to handle errors gracefully and without causing trouble for the user. Developers that are new to PHP sometimes complain that there is no built-in error handling functionality, but what they haven’t learned yet is that the functionality is there – you just have to… View full post »

PHP Caching Solutions: Best of the Pack

November 23rd, 2011 Leave a comment 2 comments

PHP Caching Solutions: Best of the Pack

Site performance versus traffic: it is a tough battle to fight. When working with PHP applications we usually have to face this issue sooner or later, as a site becomes more popular it can begin to suffer from performance issues. There are several ways that you can improve your site’s performance to help solve this problem, but one of the easiest ways is to set up PHP caching. PHP Caching is an excellent solution for Web sites that wish to improve their site performance by allowing their dynamic pages to be stored client-side by your application. These solutions… View full post »

PHP Profilers Compared

November 10th, 2011 Leave a comment 2 comments

PHP Profilers Compared

Whether you are an experienced developer or just getting started it is important to know how to measure the performance of your scripts and applications so that you can learn to make improvements and optimizations to your code. There are several tools available, both commercial and free, that will allow you to make these kinds of measurements in your environment. Some tools are very simple and only look at log times to determine how long a request has taken; others have more features and offer full application profiles, query analyzers and execution plans. This article compares two… View full post »

PHP Tutorial: An Introduction to PDO

July 5th, 2011 Leave a comment

PHP Tutorial: An Introduction to PDO

Since its inception, PHP has moved from a procedural language to an object-oriented one; some of its procedural roots, however, still linger. One of these procedural remnants is an antique method of accessing SQL databases; many programmers still use the older mysql and postgresql procedural modules to access databases, and even those who have switched to newer methods, like mysqli, might still be hampered by the fact that such a module only works with mysqli. PHP has since implemented better methods, but many procedural PHP developers are unsure of how to use newer, object-oriented MySQL connection methods. Let’s delve… View full post »

Best PHP Books: My Top 5 Choices

March 28th, 2011 Leave a comment 1 comment

Best PHP Books: My Top 5 Choices

Continuing with our best-five-book series, today we are introducing our pick of the top 5 PHP books. Obviously, PHP has been around much longer than our other review subjects such as Android or HTML5, and there is a greater general variety of books to choose from. PHP is, in many ways, unique in the land of programming languages and web-based application infrastructure. It’s a language that is changing rapidly (the most notable shift being from procedural to OOP in PHP5) but there are surprisingly few books and helpful manuals to help programmers adapt to these changes (as evident by the… View full post »

PHP & MySQL Best Practices for Rock-Solid Applications

March 11th, 2011 Leave a comment 1 comment

PHP & MySQL Best Practices for Rock-Solid Applications

PHP and MySQL are often the preferred technologies for building web applications because they allow you to build robust web applications very rapidly. This rapid development, however, sometimes leads to code that is hard to maintain, doesn’t scale well or performs poorly. Fortunately, there are a few things that you can do early in your application development cycle that will keep your application from developing problems. Follow these PHP/MySQL best practices to build rock-solid applications. Also, keep in mind in general that a bit of extra time invested upfront in keeping your code easily maintainable will save… View full post »