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.

3 solutions for sorting multidimensional arrays by child keys or values in PHP

January 29, 2017 Difficulty: 50 / 50
sorted lego pieces

One of the tasks that less experienced programmers find really difficult is to sort multidimensional arrays by one of the values in the child arrays. In today's tutorial I'm going to show you 3 ways of achieving that - you decide which ones seems easier for you and provides the best performance.

Read Full Article...

Using PHP to create new subdomains, databases and email accounts on a cPanel driven server

January 16, 2017 Difficulty: 30 / 50
control panel button

Many hosting providers use cPanel and this tutorial comes as a helper for those of you who need to manage various server aspects with PHP. I will show you how to create new sub-domains, databases and email accounts on a cPanel driven server, from your PHP code.

Read Full Article...

Punked School of Coding

December 22, 2016
punked-school-of-coding
An incentive for developers, computer science teachers and other professionals to follow what I'm doing for my local community - educate our young and prepare them for the future through free computer science teachings.Read Full Article...

How to install PHP 7 on a cPanel/WHM driven server without breaking everything

October 17, 2016 Difficulty: 40 / 50
php-7-cpanel2

In this tutorial I want to share my experience with installing PHP 7 on one of my WHM/cPanel driven servers on which I had multiple websites that simply couldn't run a version of PHP that is from this century :).

I needed to have PHP 7 up and running for some websites and leave the old ones with the old version of PHP (5.3 I think).

Read Full Article...

Send emails with attachments using JavaScript

October 16, 2016 Difficulty: 15 / 50
mail-with-javascript

A few days ago a client asked me if I could send out emails with attachments using client side code only. At first I laughed, asking myself why would anyone want to do that, but then I thought: "Who cares! Whatever the client wants!". In the end I did find out that this was caused because of the hosting environment that he used which didn't allow any type of server-side code to be executed (Sooo weird!).

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 exif_process_IFD_TAG function in ext/exif/exif.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 does not properly construct spprintf arguments, which allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via crafted header data. Read more ...
2017-02-16 - The xml_parse_into_struct function in ext/xml/xml.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 (buffer under-read and segmentation fault) or possibly have unspecified other impact via crafted XML data in the second argument, leading to a parser level of zero. Read more ...

See All Entries...