February 14, 2018 / Comments: 0

Sneak peak to OOP - Pagination class

I would like to begin with a statement that page navigation or pagination was planned to have its own post but since it was necessary for the gallery at the time, I have decided that there will still be a post dedicated to pagination. However, to avoid duplicate content, the plan is to rewrite it in object-oriented programming(OOP) style which brings a whole different paradigm and mindset to the table which again makes me wonder whether or not I want to have an...

Tags: php  oop  

February 9, 2018 / Comments: 0

How to implement Image LightBox to gallery?

Today we are going to look into how to implement a jQuery ImageLightBox plugin into Light-weight PHP gallery which was disscused in the previous tutorial. Firstly, we will look into the basics of how to configure the plugin to work on the gallery as well as some of the basic plugin's features, such as overlay and close button. While this should be sufficient for the lightbox to work, we will also re-design the gallery frontend and synchronize it with jQuery for easy...

Tags: gallery  php  jquery  css  

January 30, 2018 / Comments: 0

How to create a gallery with thumbnails using PHP?

In this tutorial, I'll be showing you how to make a safe to use, yet simple, gallery with thumbnails, without database, using PHP only. We will also include pagination and sorting of the images by creation date(when they were uploaded) that will somewhat replicate the SQL datetime effects. The basic concept is to allow uploading up to three files simultaneously, limit them on file size, on file name length and on file type, just basic inspection before actually...

Tags: gallery  php  

January 30, 2018 / Comments: 0

Tricks and traps when creating a Gallery

Every now and then, but more often than not, a web developer is asked to deliver a gallery application for uploading and displaying images on the client's website. Now it depends on the client's wishes how exactly to approach the task ahead. One option is to search for galleries online and see, if anything comes close to what is needed. Quite often you will find what you're looking for and perhaps even as an open source project that you'll be able to use for other...

Tags: gallery  security  

January 19, 2018 / Comments: 0

What is a Regular Expression? (Regex)

Sooner or later, anyone using programming language or languages on a regular basis will come across regular expressions, either out of necessity or out of interest. Looking at it for the first time, it might seem like a bunch of randomly scattered characters that make no sense whatsoever. Which points to the question what exactly is a regular expression and why should I be using it, if I was doing just fine so far? Well, regular expressions are a set of characters put...

Tags: regex  python  

January 12, 2018 / Comments: 0

How to survive against online cracking tools?

Today, I want to talk about why one needs to be careful when it comes to the login application, why to avoid using outdated hashing methods when authenticating and how to protect against online dictionary and brute force attacks. But sometimes, it's better to look at it from different perspective to get a better picture. So for this discussion, I have designed a python tool that attacks login apps to get the password of the username provided. To help you understand...

Tags: security  hashing  

January 5, 2018 / Comments: 0

What are CSS sprites and how to create them?

Update: Please note that the layout has recently been changed and that the side navigation on desktop no longer uses images but what is said in the following article still remains true. Basically, in one sentence, CSS sprites are images that contain more than one image together as a single file. While this may seem counter productive at first, to put images together in your favourite image manipulation toolkit, it is actually easier to do and more beneficial for your...

Tags: css  


1