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 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...

Becoming A Zend Certified PHP Engineer - A Career Changer For PHP Developers!

April 3, 2015
certification diploma

Everything you ever needed to know about the Zend PHP Certification

Daniel Gheorghe - Zend Certified PHP Engineer My name is Daniel, I started out writing PHP back in 2005 and earning my Zend PHP Certification has been one of my goals from the very beginning. It took me 10 years to feel confident enough to take the exam. During that time, I struggled to find quality information about the certification and the exam itself, so now that I finally did become a ZCE I thought that this article would help shed some light on the entire process.

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...

Sync Audio with text using JavaScript

March 9, 2015 Difficulty: 30 / 50
sound-waves

A client of mine wanted a way to highlight text on a page as audio was playing, thus helping children that had difficulties reading along. In this tutorial I will show you the solution I implemented.

The code makes use of the timeupdate event and it uses the data from the JSON to sync audio with the text.

Read Full Article...

1 2 3 4 5 6 7 8 9 10
Better Docs For A Better Web - Mozilla Developer Network

Alerts

2017-01-17 - The php_wddx_push_element function in ext/wddx/wddx.c in PHP before 5.6.29 and 7.x before 7.0.14 allows remote attackers to cause a denial of service (out-of-bounds read and memory corruption) or possibly have unspecified other impact via an empty boolean element in a wddxPacket XML document. Read more ...
2017-01-17 - The get_icu_value_internal function in ext/intl/locale/locale_methods.c in PHP before 5.5.36, 5.6.x before 5.6.22, and 7.x before 7.0.7 does not ensure the presence of a '\0' character, which allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via a crafted locale_get_primary_language call. Read more ...

See All Entries...