Test HTTP Requests Tools Blog Learn Quizzes Smile API Log In / Sign Up
Test HTTP Requests Tools Blog Learn Quizzes Smile API Log In / Sign Up
We have updated the website and our policies to make sure your privacy rights and security are respected.
Click here to learn more about the way our website handles your data.

Remove this message.

How to backup Ubuntu and restore it using "dd"

Difficulty: 20 / 50
Codepunker-dead-hard-drive

DD is a Unix and Unix-like utility that is primarily used to convert and copy files. One really useful use-case for dd is that it can "pack" entire partitions into one single image file, thus allowing users to recover entire disks by "unpacking" and restoring a file-system in case of hardware failure.

To create a full backup for a partition the command you need to run is straight-forward. The size of the resulting image file will be the same as the size of your partition so make sure you have enough free space on the drive you are placing your backup... also, please avoid placing your image file on the same drive that you're backing up.

Read Full Article...

The Basics of Time and Date in PHP and MySQL

Difficulty: 20 / 50
date-time-php-mysql

In this tutorial we will go through doing basic operations with Date/Time functions in PHP and MySQL and learn how to keep time zones in sync inside an application. We'll start by understanding why application level synchronization between the MySQL and PHP time zones is necessary.

Read Full Article...

Basics of class visibility and Object Inheritance

Difficulty: 20 / 50
inheritance

In today's tutorial I will try to explain two of the basic principles of Object Oriented Programming in PHP - class visibility and object inheritance.

I remember that when I started out I had difficulties understanding these things, so in this tutorial I'll try to expose a different angle for looking at some of the confusing aspects of OOP. Hopefully this approach will make everything clearer for you as it did for me ages ago.

Read Full Article...

Login with GitHub using PHP

Difficulty: 35 / 50
Github-Jacket-Mug

This tutorial is not intended as a comprehensive package that fully exploits the GitHub API. It is however, a "guide" that is meant to show you how OAuth2 works by providing a practical example through the use of the GitHub API.

Using this package will authenticate users through their GitHub account by checking their public profile which in turn would represent enough to start a session on the website that creates the request. In this package I use the Slim Framework to read data from requests and configuration parameters, but the thing can be adapted to work with any framework.

Read Full Article...

A simple jQuery Ajax Request to PHP

Difficulty: 20 / 50
simple-ajax-requests

This article was originally written in 2010. This is an updated version on how to do simple Ajax requests using jQuery

Ajax is a very nice tool for web developers. It helps you interact with the visitor without reloading the page. Searching the internet you will find various Ajax code samples that are simply too complicated and some are too specific. I added some comments that will better explain what the code does and how it can be tweaked.

Read Full Article...

1 2 3 4 5 6 7 8 9 10