Split SQL files

Sometimes you might have to move a web site from one to another hosting. This process always involves making a database back-up and importing it into the new hosting. SQL file can reach sizes far bigger than 60mb if we talk about websites that have been around for a while. It's almost impossible to open…

Send email with php

In this tutorial we will go trough the process of creating a simple php code that takes the values from a html form and sends them to an email address. Let's called it contacts form. First we need to create a html form with few fields. We need first and last name of person, e-mail,…

Save data from a form to txt by using fwrite

Lets say you have a newsletter subscription form on your web site. But you just want to collect e-mails of people and write them down in a file. In order to do this, we need to read the input tag's value added by the user and use php function fwrite to add them. Here is…