You are here: Home » PHP (page 3)

Category Archives: PHP

Export Data In Excel In PHP

phpsage.com

To export data in excel, Use below php code in your data which you want to export to excel. When you can export dynamic data in php mysql, just create a simple page in which show fatch data and just put. Below code. Read More »

Email with attachment

phpsage.com

To create mail with attachment, First you have to upload file. and you have to define file path of your site or if you want to attach file from your site, you have only define file path. Use below code and define Recipient, Sender, Subject, Message. You have to define header to mail. Read More »

Generate random alphanumeric value in php

phpsage.com

Generating random alphanumeric value in PHP is very simple. See the code below, it will generate random values. $length denotes string length. If you want only numeric use $characters = ‘0123456789’; Only want alpha value use $characters=’abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’; May change $characters value according to requirement. Read More »

How to Upload file in PHP

phpsage.com

As a developer whether newbie or having good experience, you always need to give upload function in most of the web forms. not necessarily in every form but in most cases you need to integrate feature to upload files whether they are images, pdfs or docs, as per the client’s requirement. Today I would like to share small chunk of ... Read More »

Scroll To Top