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.

Handling image uploads securely in PHP

September 19, 2014 Difficulty: 30 / 50
cloud upload

In this lesson, you will learn how to upload image files to the server with PHP. Specifically, you will go through every required validation that should be done when uploading files to the server.

This will make your upload scripts maintainable and most importantly secure.

Read Full Article...

Setting up Sublime Linter on Ubuntu

September 4, 2014 Difficulty: 25 / 50

I recently switched to Ubuntu as my primary operating system and one of the issues I've encountered was setting up Sublime Linter to work properly with CSS, PHP and JavaScript linting. This gave me the idea to write this tutorial on how you can set Sublime Linter to play nicely on Ubuntu.

Read Full Article...

Basic usage of closures in PHP

August 26, 2014 Difficulty: 30 / 50

In this tutorial I will try to teach you about the basic uses of closures (aka anonymous functions) in PHP. You will learn how closures are used as callback functions and how they can inherit variables from the parent scope.

Closures have been introduced in PHP 5.3 and their most important use is for callback functions. Basically a closure in PHP is a function that can be created without a specified name - an anonymous function. Here's a closure function created as the second parameter of array_walk(). By specifying the $v parameter as a reference one can modify each value in the original array through the closure function.

Read Full Article...

SSH shortcuts through Bash aliases on Ubuntu

August 25, 2014 Difficulty: 30 / 50

In today's tutorial I will show you how to use Bash aliases to create 'shortcuts' to your ssh connections to remote servers on Ubuntu 14.04. This will save you a lot of typing and remembering which private key is used for which server.

All you need to do that is to type a few simple commands, so open up your terminal and follow the steps below. I also made a video so you can just watch the screen-cast at the bottom of the article.

Read Full Article...

HTML for Beginners - Part 4 - Let's make a web page

August 22, 2014 Difficulty: 10 / 50

In my last tutorial on HTML for beginners, you've learned how to create a web page that contained an image and a title. The goal for today is to go one step further and create an actual design for our HTML web page.

You will learn what HTML5 tags you should use for the various sections of a web page and also how to apply CSS styling to change the appearance of your page.

Continue to the article to see how the page will look like once you've finished this step by step guide.

Read Full Article...

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


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