Tag : PHP 33 Posts

Send Real Time Notification to Clients Through Pusher in PHP

Send Real Time Notification to Clients Through Pusher in PHP

Sometimes we need to send real-time notifications to our clients. But implementing it through ajax is extremely not recommended as frequent Ajax request can slow down your server and in the rear case can cause Slowloris attack in your apache server since apache server makes threads for each request. So the best and the correct way to implement the ...

Read More

A Simple Ajax Driven Editable Table in CodeIgniter

A Simple Ajax Driven Editable Table in CodeIgniter

The contenteditable attribute is one of the new most helpful addition in HTML5. Today we are utilising the contenteditable attribute in HTML5 to build a simple ajax driven editable table in CodeIgniter. For sake of simplicity, the table contains just two columns in which one of which is ID and other one is Title of Blog Posts and when you doub...

Read More

How to Prevent Shell Attack in Image File Upload System in PHP

How to Prevent Shell Attack in Image File Upload System in PHP

The Command Injection Vulnerabilities are one of the most common types of vulnerabilities in our PHP Web Applications. The main purpose of the command injection attack or shell attacks is to inject and execute commands specified by the attacker by uploading malicious shells like C99 in our websites. The attacker mainly focused on ins...

Read More

DataTables Server-side Processing with Custom Parameters in CodeIgniter

DataTables Server-side Processing with Custom Parameters in CodeIgniter

In the previous tutorial, I show the easiest way to implement DataTables Server-side Processing in CodeIgniter and this tutorial is an improved and more standardised generic version of that tutorial. In this tutorial, I will show how to pass custom parameters along with Datatables ajax request and how to standardise the model to make it m...

Read More

Randomize Multidimensional Associative Array in PHP

Randomize  Multidimensional Associative Array in PHP

In this tutorial, I will explain how to use PHP array_rand() function with the multidimensional associative array to get some random character set. As usual, I will explain the function with a real life example. Our aim is to accept 3 numbers from the user between 1 to 9 and then output 3 random characters correspond to the individual number. ...

Read More