301 Redirect - How to create Redirects. 301 Redirect 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection.
It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently". You can Test your redirection with Search Engine Friendly Redirect Checker Below are a Couple of methods to implement URL Redirection via code and htaccess redirect. PHP Contact Form and Form Validation. Writing a Plugin.
Writing a Plugin Languages: English • বাংলা • Español • 日本語 • 한국어 • Português do Brasil • Русский • ไทย • 中文(简体) • (Add your language) WordPress Plugins allow easy modification, customization, and enhancement to a WordPress blog.
Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugins. PHP MySQL Tutorial. PHP form tutorial - PHP form processing. This article demonstrates how to use PHP forms.
You will find detailed information from the form basics to advanced form processing. Tutorial info: PHP form tutorial. This tutorial takes you step by step through web form processing using PHP.
You will learn how to collect input from a web form, validate and save it. This tutorial assumes that you are familiar with at least very basic PHP and HTML. Note: You can make web forms quickly with Simfatic Forms. Simfatic Forms helps you to make complete, feature rich forms and get it online quickly. Read more here. Creating the HTML code for the form. Extremely useful PHP classes. PHP PSD Reader A few weeks ago, I wrote an article about this PHP which allow you to display any Adobe PSD file on screen.
Very usefull to create preview of PSDs designed for clients, for example.Download Browser detect One of the most common (and boring) problem for front-end developers is definitely cross-browser compatibility. JpGraph - Most powerful PHP-driven charts. Top 20+ MySQL Best Practices. Database operations often tend to be the main bottleneck for most web applications today.
It's not only the DBA's (database administrators) that have to worry about these performance issues. We as programmers need to do our part by structuring tables properly, writing optimized queries and better code. In this article, I'll list some MySQL optimization techniques for programmers. Before we start, be aware that you can find a ton of useful MySQL scripts and utilities on Envato Market. Most MySQL servers have query caching enabled. The main problem is, it is so easy and hidden from the programmer, most of us tend to ignore it. The reason query cache does not work in the first line is the usage of the CURDATE() function. Using the EXPLAIN keyword can give you insight on what MySQL is doing to execute your query. The results of an EXPLAIN query will show you which indexes are being utilized, how the table is being scanned and sorted etc...
After adding the index to the group_id field: LiveDocx in PHP - Zend_Service_LiveDocx. Generating print-ready well-formatted PDF documents with PHP is not an easy task.
Traditionally, there are two main approaches to PDF generation with PHP. Given sufficient time and patience, both partially get the job done, but still leave a lot to be desired: HTML-to-PDF: This approach is widely used in mainstream applications. Here an HTML document is programmatically created and converted to a PDF, using one of the many open source libraries 1. Since HTML, however, is not a page-oriented format (as is PDF), it is impossible to perform a 1-to-1 mapping between HTML and PDF. Programmatic: This approach offers total control of the resulting PDF. A completely new approach In this article, the author presents an entirely new, third approach. Before we delve into a technical discussion on the inner workings of this new approach, let us first take a look at a practical example.
The code demonstrated in this article ships with Zend Framework 1.10 or newer. Introducing LiveDocx. 43 Ways to Optimize your PHP Code. PHP Tutorials and Reference Guide. 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. 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. 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.
Source and docs: 40+ Invaluable PHP Tutorials and Resources. Akelos PHP Framework. AtomicPHP. 7 Secure, Lightweight, and Easy to Use PHP Frameworks. Choosing a good PHP frameworks can help you develop complex Rich Internet Applications quickly, with a best practices oriented approach, and saving a lot of time reusing code snippets that are already available.
There are a lot of interesting PHP frameworks you can choose for your next web project. Which framework you choose is really a personal decision. There is no one “best” framework on the market at the moment. Different frameworks are better for different types of projects, and for different developer. Today we will focus on 7 secure, lightweight and easy to use PHP Frameworks.