PHP Tutorials, PHP Codes, Sample Codes Blog

How to clear the Magento 1.x cache

The Magento cache type contains configuration(system and module configuration files), layouts, HTML blocks, translations, attributes, etc. This caching system allows you to avoid repetitive operations upon condition that you didn’t change anything influencing these...

How to Apply and Revert Magento 1.x Patches

Magento release new patch(es) for Community and Enterprise editions when it finds any vulnerability in the existing releases. It is highly recommended to install all the patches as soon as possible because your Magento...

Different types of errors in PHP

Different types of errors in PHP

Basically there are four types of runtime errors in PHP. The error message is sent to the browser with filename, line number and a message describing the error. Different type of errors are as...

Run PHP applications on IIS Server

Using FastCGI to Host PHP Applications on IIS Make sure you get the FastCGI extension for IIS 6.0 or IIS 7.0. It is the single most important thing you can have when running PHP...

Data Types in PHP

PHP has a total of eight data types which we use to construct our variables to store data of different types. PHP supports the following data types: String : are sequences of characters, like...

How to send an email using PHP

How to send an email using PHP

You can use PHP’s mail() function to send emails directly from a script. Remember mail function will not work in Local server. Syntax

Basic mail function

Send an email with extra headers...

Where to place your Javascript code?

Where to place your Javascript code?

While using Javascript, the SCRIPT tags can be inserted in between the two BODY tags, the two HEAD tags, and as a link to an external file, also in the HEAD section. Its advocate...

MySql Connection using PHP

PHP provides mysql_connect() function to open a database connection. Syntax: resource mysql_connect(servername,username,password); servername : The host name running database server. If not specified, then default value is localhost. username : The username accessing the...

Get started with PHP

Get started with PHP

To write and test your PHP script you will need a server environment. PHP is a server-side scripting language, so you either have to get some web space from a hosting company that supports...