Tools Blog Learn Quizzes Smile API Log In / Sign Up
Tools Blog Learn Quizzes Smile API Log In / Sign Up
We have updated our privacy policy to let you know that we use cookies to personalise content and ads. We also use cookies to analyse our traffic and we share information about your use of our site and application with our advertising and analytics partners. By using this website or our application you agree to our use of cookies. Learn more about the way this website uses cookies or remove this message.

The Basics of Time and Date in PHP and MySQL

July 14, 2015 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

June 14, 2015 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...

The basics of variable scope in JavaScript

April 21, 2015 Difficulty: 35 / 50
scope

In this post, I will try to explain JavaScript variable scopes and hoisting as well as the many implicit gotchas. To make sure we don't bump into any sudden, unforeseen problems while coding, we must really understand these concepts. Otherwise the trivial task of reading more advanced JavaScript code can prove an overwhelming and most times an unsuccessful attempt.

The scope is the "bucket" in which a variable exists and it is useful because it catalogs the "buckets" from which you can access a variable and if you actually have access to it from within a particular "bucket".

Read Full Article...

Login with GitHub using PHP

March 31, 2015 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

March 15, 2015 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
Better Docs For A Better Web - Mozilla Developer Network

Alerts

2017-02-16 - The bcpowmod function in ext/bcmath/bcmath.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 modifies certain data structures without considering whether they are copies of the _zero_, _one_, or _two_ global variable, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted call. Read more ...
2017-02-16 - The grapheme_strpos function in ext/intl/grapheme/grapheme_string.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a negative offset. Read more ...

See All Entries...