Php mySQL

Facebook Twitter

301 Redirect - How to create Redirects. 301 Redirect 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection.

301 Redirect - How to create Redirects

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 IIS Redirect In internet services manager, right click on the file or folder you wish to redirect Select the radio titled "a redirection to a URL".

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.

Writing a Plugin

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.

PHP form tutorial - PHP form processing

PHP form tutorial. This tutorial takes you step by step through web form processing using PHP.

PHP form tutorial

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.

extremely useful PHP classes

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. This PHP class will detect almost all browsers and simplify your cross-browser work.Download Akismet Remember those days without spam? ADOdb The large majority of websites and web apps are using databases to store all kinds of data. 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.

Top 20+ MySQL Best Practices

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. Here are some MySQL optimization techniques for programmers. Most MySQL servers have query caching enabled. It's one of the most effective methods of improving performance, that is quietly handled by the database engine. 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.

LiveDocx in PHP - Zend_Service_LiveDocx

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. 43 Ways to Optimize your PHP Code.

PHP Tutorials and Reference Guide. 15 very useful PHP code snippets for PHP developers. By Viral Patel on May 7, 2009 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 $to = "viralpatel.net@gmail.com" ; $subject = "VIRALPATEL.net" ; $body = "Body of your message here you can use HTML too. e.g. $headers = "From: Peter\r\n" ; $headers .= "Reply-To: info@yoursite.com\r\n" ; 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.

PHP command line syntax checking

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: If the syntax in the file is correct you will see this: If there are errors then theses will be listed as in the following example output: Note that the syntax checking only checks for syntax errors - it does not report the usage of variables which have not yet been defined, functions or class which have not be declared etc. 10 code snippets for PHP developers « The html blog. 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.

7 Secure, Lightweight, and Easy to Use PHP Frameworks

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.