Category: PHP

How to prevent direct file access from a directory on server?

How to prevent direct file access from a directory on server?

Friends, Here is a simple approach to prevent the direct file access from a directory on a server. To do this we need to create a file .htaccess and just write a single line...

PHP implode and explode functions

PHP implode and explode functions

PHP implode() function is used to join array elements with a string. This function can be used whenever you want to represent an array in the form of string separated by some or any...

Magento Basic Requirements Check

Magento Basic Requirements Check

Magento Basic Requirements Check The following code can help us to check whether our system meets the basic requirements for magento installation or not. To use this code copy and paste it into a...

Read And Write From a File Line by Line in PHP

Read And Write From a File Line by Line in PHP

Hello Friends,This is a simple example which demonstrates how one can write into a file line by line data in json format and read from that file again line by line. 1. Create a...

How to concatenate two or more arrays in PHP?

How to concatenate two or more arrays in PHP?

This is one of the example which are simple enough to implement but sometimes we make so many efforts to achieve this but we didn’t succeed at the end. I have suffered with this...