background preloader

43 Ways to Optimize your PHP Code

43 Ways to Optimize your PHP Code

Related:  arnoldobr

Harder, Better, Faster, Stronger There are times when part of the message, the gist, must be communicated to the reader in an out-of-band fashion, so to speak. One way of doing this is to use an epigraph to open a chapter or section, carefully chosen to convey the intended message but in the voice of another author (self-epigraphs are of very bad taste in my opinion). is the preferred document preparation system of computer scientists, physicists, and mathematicians and if you intend to follow a career into the academia, it’s pretty much unavoidable. One day, you’ll have to learn .

Quick and Dirty PHP Caching Advertisement Caching your database-driven website pages has a plethora of benefits, not the least of which being improved speed and reduced server loads. This article will explain how to set up a simple caching system, and will also address when and where caching might not be appropriate. 15 very useful PHP code snippets for PHP developers Following are list of 15 most useful PHP code snippets that a PHP developer will need at any point in his career. Few of the snippets are shared from my projects and few are taken from useful php websites from internet. You may also want to comment on any of the code or also you can share your code snippet through comment section if you think it may be useful for others. 1. Send Mail using mail function in PHP 2.

PHP Manual PHP 7.1.4 Released Edit Report a Bug PHP Manual ¶ by: Mehdi Achour Friedhelm Betz Antony Dovgal Miles Johnson // Blog: 5 custom PHP functions: Strings All of these functions can be found within the Titon Utility library. It's now time for some PHP that isn't Cake related. This is the first part in a series of "Basic/Common PHP functions that all programmers should know". This series has to deal with manipulating strings. I try to make my functions short, sweet and powerful, and I hope you learn something from them.

TCPDF - PHP Class for PDF It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website. <div style="font-family:helvetica,arial;font-size:small;padding:0 4px 0 4px;background-color:#FFFFCC;color:#003399;border:1px;border-style:solid;border-width:1px;border-color:orange;"><form action=" method="post"><div><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="" /><input type="hidden" name="lc" value="US" /><input type="hidden" name="item_name" value="" /><input type="hidden" name="no_note" value="0" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_SM.gif:NonHostedGuest" /> It appears that you are using AdBlocking software.

10 code snippets for PHP developers « The html blog I’ve compiled a small list of some useful code snippets which might help you when writing your PHP scripts… Email address check Checks for a valid email address using the php-email-address-validation class.

Getting Snow Leopard built-in MAMP to work smoothly Considering you are here, I can assume you are a desperate folk looking for a possible solution to make built-in MAMP work perfectly using the default packages that comes with clean Snow Leopard installation. Trust me, I was feeling like you are now a few hours before I start this post. Here you’ll see how to enable Apache2, turn PHP 5.3 available on server and also install missing PECL extensions of PHP, such as Imagick ( ImageMagick ), Xdebug , APC and Memcache . Before we start I would assume you have Xcode and Homebrew installed. Simple Layouts with PHP This tutorial is for those starting out in PHP and want to learn a great way to create layouts. This will help reduce redundancy and keep you from writing too much code. Download the Source Anyone that has been developing HTML based sites for some time has undoubtedly ran in to the issue of keeping the design consistent across multiple pages.

Free Address Book Script ( PHP + MySQL ) Ver 1.18 ( Security patch applied ) This is a free Address Book PHP script with a MySQL database. This script allows users to search, view, add, edit, and delete address entries from a web browser. Each user can have a different login username. It's very easy to add/remove fields to/from the script. In fact, I've seen others using this script to store something totally different from addresses. PHP command line syntax checking Posted April 24th, 2010 in PHP The PHP CLI (command line interface) allows basic syntax checking of a PHP file. I'll show the basic usage of this in this post and then a couple of ways to check all files in a directory, and all files recursively down the directory tree as posted by a couple of people on Twitter. Syntax checking a single PHP file from the command line The syntax for checking is like this, where the -l flag is a lower case L:

Related:  PHP SpecificPHPPHP