Posts

Improve PHP Application Speed By Using APCu

Image
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code. This extension is considered unmaintained and dead. The new alternative is called APCu. APCu is APC stripped of opcode caching. The first APCu codebase was versioned 4.0.0, it was forked from the head of the APC master branch at the time. PHP 7 support is available as of APCu 5.0.0. APCu is used to keep copies of data in memory, then reducing the time required to make queries, data filtering, data processing, etc. Many frameworks like WordPress supports APCu caching by adding caching plugins such as W3 Total Cache, or you can make your own custom code to use it the way you want. Installation On Linux systems such as Centos, you can install it via the Yum package manager according to php version yum install php56w-pecl-apcu On Microsoft Windows with XAMPP installed, you can enable it by adding the dll extensi...

Improve PHP Application Speed By Using Zend OPcache

Image
Zend OPcache Bytecode caches are not new to PHP. We’ve had optional standalone extensions like Alternative PHP Cache (APC), eAccelerator, ionCube, and XCache. But none of these was built into the PHP code distribution until now. As of PHP 5.5.0, PHP has its own built-in bytecode cache called Zend OPCache. First, let me explain what a bytecode cache is and why it is important. PHP is an interpreted language. When the PHP interpreter executes a PHP script, the interpreter parses the PHP script code, compiles the PHP code into a set of existing Zend Opcodes (machine-code instructions), and executes the bytecode. This happens for each PHP file during every request. This is a lot of overhead, especially if PHP must parse, compile, and execute PHP scripts over and over again for every HTTP request. If only there were a way to cache precompiled bytecode to reduce application response times and reduce stress on our system resources. You’re in luck. A bytecode cache stores precompile...

How To Use Downloaded Google Fonts in WordPress

Nowadays, Google Fonts are very popular to be used in websites. In a related article on GoodSelects, we talked about Google Fonts integration, either it is remotely or locally. Most content management systems (CMS) have already integrated Google Fonts to be used remotely.  In this article, we will explain how to use downloaded google fonts in WordPress, as it is the most famous CMS. WordPress Theme Fonts Integration WordPress themes integrate fonts by calling  wp_enqueue_style  inside functions.php file. Each theme has functions.php file which adds features and functionality to the WordPress theme. Below, we will use the Underscore starter theme as a tutorial example. Underscore Theme Underscore theme is a popular startup theme used to build your custom theme. It comes with comments useful to start building themes. You have to go  here  and download the theme zip file with the desired name and import it to your WordPress site. You have to be familiar with web development in order to c...

How To Use Google Fonts - For Geeks

Image
Google Fonts are becoming the industry standard for many websites. The typefaces of Google Fonts are free for commercial use, so you will have no trouble with licensing. The fonts are easy to embed in your website, so no trouble with font embedding. In addition, the fonts can also be downloaded and used in print. Below you will find an easy to use guide for how to use Google fonts everywhere. How to use Google fonts Choosing a Google Font is the first step of using Google Fonts. To choose a font you have to go to Google Fonts site. Then choose a font by selecting what best suits your needs. Then the font is added to selected fonts. Google Font load speed Font Loading Speed You have to pay attention to font load speed founded after selection. The font load speed is very important for the website. It affects your website load speed so that it will affect website SEO score in search engines.   Embedding Google Font The selected fonts panel shows an Embed tab; which contains styleshe...

Keep HTML Readable for Search Engines

It is important to keep HTML readable for search engines to get most of the website you are developing. Keeping HTML readable includes spending time on HTML quality and latest standards, but it will raise your website ranking and save a lot of time of work. Get Rid of Old HTML Markup Many of web developers fall into the trap of using elements and techniques that might have been appropriate in days gone by, but are now deprecated in favor of alternative approaches. Old HTML markup includes <marquee> element, presentational markup like <b> and <center> tags. It is better to use CSS classes and ids so you can externalize your CSS. It is also better to use the latest HTML content and structure elements such as <header>, <footer>, <section>, and <article> rather than nesting <div> tags. HTML today is very rich of things previously done by JavaScript. Use Newest HTML Readable Elements Today, search engines are smarter than before. They look for...

A Guide To Organic SEO And Its Benefits

What Is Organic SEO? Put in the simplest manner possible, organic SEO is search engine optimization done manually using no black hat methods, no underhand methods, and no automated scripting. It is the purest form of optimizing your website for the benefit of search engines, while still retaining interest for your site visitors, and done well it is exactly the thing that search engines are looking for in a website. Once they find it they will reward your site with better rankings and improved positions within the search engine results pages. Throughout the course of this article, it will be referred to as simply SEO. Understanding The Search Engines Understanding Search Engines and their general concept is vital to the use of effective Organic SEO methods. Search engines enable their visitors to enter a specific word or term, known as keywords. Once submitted, all pages containing those keywords that can be found in the search engine’s directory are listed on the search engine result p...

Top Code Editors for Web Developers

Web development today has many various resources to use. Each developer has the choice to choose his suite of development tools. One of the first tools to choose is what code editors he will use to develop web applications. It depends on many features the developer is searching for. Code editors have been developed very fast in the past 5 years. Today, the code editors include many features and eye-catching colors, which have become as flavors that depend on the developer tasting. So, the developer has to taste and choose :). Best Code Editors List Sublime Text Sublime Text is a sophisticated text editor for code, markup, and prose. You’ll love the slick user interface, extraordinary features, and amazing performance. Brackets Brackets is a lightweight, yet powerful, modern text editor. We blend visual tools into the editor so you get the right amount of help when you want it without getting in the way of your creative process. You’ll enjoy writing code in Brackets. Atom Ato...