Sunday 11 September 2016

How to check if image file exists and folder exist in PHP

Here i have write the code to check if image file exists and folder exist and use below code.

For File exists


For Folder exists and create folder

Saturday 27 August 2016

Create a new user in MYSQL and set the PRIVILEGES to Database

Description :-

In below i explain about create new user in MySQL database and give the permission/privileges to access the database.

Script :-

create a new user to use following code


 Then grant the privileges to particular user as follows.
In above script grant all privileges to all databases in MySQL databases.if you want give the privilege to particular database then use following script.