How to Create ZIP File using PHP

create-zip-file-using-php

The ZIP is a normally used file format to archive files with information compression. When you need to enable the client to download numerous folders and files from the server, you have to make a ZIP file on the fly. It compresses files and archive to download numerous files at once. The ZIP file creation from the PHP script is basic as like the add to archive functionality in the System. Making ZIP archive from the directory can be effectively executed utilizing PHP. The ZipArchive class in PHP gives a…

Read More

How to send attachment in an email on form submission using PHP

send mail with attachment in php

Contact or feedback form is utilized for online communication and the submitted form data is sent vie email instantly. At the point when the contact form has a document upload field, the document should be sent with email as a attachment. Using the php mail() function, you can send email with attachment and form data in PHP without much of a stretch. In this instructional tutorials, we will guide you how to send email with attachment on form submission using PHP. The following code gives a moment capacity to make…

Read More

How to Create One Time Temporary Download Link with Expiration in PHP

Tutorials Website

Temporary download link is extremely helpful to offer Digital products on the site. It gives a safe method to share the download link of the advanced items. The client permits downloading the record just a single time, after the download the link is terminated or evacuated. The one-time download link is perfect to give an advanced item (code, music, video, and so on) to a solitary individual and terminate the link once the item is downloaded. With the single-utilize download link, you don’t have to physically screen the download action…

Read More

How to Generate PDF from Mysql Database using PHP

Generate PDF from mysql database

In this post I will explain you How to Generate PDF from Mysql Database using PHP. To Generate PDF file with mysql data content and output, we will use popular php library FPDF which will help us to generate PDF file. What is FPDF ? FPDF is a PHP class library which allow us to generate PDF file using PHP. In FPDF, ‘F’ stands for Free. So We can say FPDF  means Free PDF . It is Open Source library. You may use it  and modify for any kind of usage to…

Read More

How to Import MySQL Database from SQL File using PHP

Importing SQL script via programming will be useful when we need to create database structure dynamically. For example, if we provide APP or plugin to download and install from online, the dynamic SQL import will be used to setup the application database at the time of installing the APP or plugin. To import SQL file in the database, you have to login to your hosting server or phpMyAdmin. Also, you can import the database from PHP script without login to your hosting server or phpMyAdmin. Import database from PHP script…

Read More

How to Create Dynamic Category Subcategory Tree using PHP and MySQL

category-subcategory-tree-dropdown

Category and subcategory tree view structure gives an easy to use approach to list the parent and child categories. The category and their subcategory are effectively isolated by a tree structure. The categories tree view is constantly recommended to display a boundless level of categories and subcategories. In this instructional exercise, we will show you industry standards to make dynamic category subcategory tree using PHP and MySQL. The recursive category tree is extremely helpful to list n level categories in a dropdown. The code help you to make n level…

Read More

Facebook style timeline content loading placeholder with CSS

Facebook style timeline content loading placeholder with CSS

In this article, we’ll get the knowledge about Facebook timeline placeholder style using CSS. Many times you have noticed that when you open facebook on your system, you will get content loading placeholder and you always think how that placeholder work. I have found that code and want to share that with you all. you will get all HTML and css code below if you need to use this code in your project or any application. Let’s start and do it: First of all create HTML file and copy paste…

Read More

Different types of errors in php

Different types of errors in php

E_ERROR: A fatal error that causes script termination E_WARNING: Run-time warning that does not cause script termination E_ALL: Catches all errors and warnings E_PARSE: Compile time parse error. E_NOTICE: Run time notice caused due to error in code E_USER_WARNING: User-generated warning message. E_USER_ERROR: User-generated error message. E_USER_NOTICE: User-generated notice message. E_STRICT: Run-time notices. E_RECOVERABLE_ERROR: Catchable fatal error indicating a dangerous error

Read More

PHP Array Function

Here is the list of PHP array functions sizeof () :- This function is used to count the items of the array. (count() is also used instead of this).   Example:  

explode () :- This function is used to explode the string into an array. Example:-

implode () :- This function is used to convert the array into a string. Example:

Range () :- This function allows us to get the range of numbers such as 1,10 or 1,100 etc.. We need to specify two points.…

Read More

Resize Image While Uploading with PHP

Resize image

For this purpose you need to do some optimization with image files. Image resize while uploading is one of them. All major website do it in the same way. If a user uploads a 5mb image file they resize it in different sizes and store on there server. It helps them to seed up there website and reduce there budget. Now take a look, how we can do it ourself. PHP and HTML(index.php) This file holds the basic of file uploading html markup and simple php upload handler

Resize…

Read More