PHP setting to read large blob and text data type

Sql server setting to get more than 4kb data from mssql query in PHP configured IIS server. Default size allowed in IIS web server PHP config file is  4096 i.e. around 4KB. You must edit php.ini and uncomment the following two lines and restart your IIS web server. Update following change to mssql.textlimit = 2147483647 […]

Multiple file attachment in PHP Mail() function

Using core PHP mail() function you can send simple mail see below simple core php mail() script. We have also given the multiple file attachment function using core php code by using mail() function For this we have to use multi-part message in MIME format. There is no need to include any phpMailer class. Following […]

Activate file Cache code in Cakephp 2.5

Caching in CakePHP 2.5.x is primarily facilitated by the Cache class. This class provides a set of static methods that provide a uniform API to dealing with all different types of Caching implementations. CakePHP comes with several cache engines built-in, and provides an easy system to implement your own caching systems. The built-in caching engines […]

How to auto start teamviewer in linux CentOs

I have tried following steps to auto start teamviewer on system start in linux CentOs 6 machine, for that I have used TeamViewer version 8. Note :- I have tried teamviewer auto start feature using teamviewer 10, but that’s not working. So my suggestion is to downgrade or upgrade your teamviewer to version 8. Custom […]

Create ZIP file in PHP

Simple PHP code to ZIP your uploaded content folder with all sub folders and files or only a simple file. Using ZipArchive() function, this function supports PHP 5+. The given code out put is forcing to download the ZIP file and then deleting the created zip file from the server to delete zip file we […]

Upload and read excel file using PhpExcelReader Library

We can read excel file using PhpExcelReader library. Create a folder called excelreader, and paste following library files. excel_reader.php Following is the code: create file upload_excel.php <?php include "excelreader/excel_reader.php";   if (is_uploaded_file($_FILES[’filename’][’tmp_name’])) { $ext = explode(".", $_FILES[’filename’][’name’]); $file_name = $ext[0]; $extension = $ext[1]; $date = $date = date(’Y-m-d’);   $final_name = "temp/".$file_name."-".$date.".".$extension;   rename($_FILES[’filename’][’tmp_name’], […]

Install TeamViewer on Linux CentOs 6

Steps to install teamviewer on Linux CentOs 6, and configuring TeamViewer for auto start with system boot. Note : Do root login. 1. Install Teamviewer-8 in the Linux CentOs 6. Download .rpm file from this location = Note: If TeamViewer is already installed on your Linux system, and it’s version is greater than or […]

PHP, Apache, MySql installation on Linux CentOs 6

Following are the steps to install PHP, APACHE and MYSQL on our Linux CentOs-6. Steps to install PHP, Apache on Linux Cent Os 6. 1. first connect your Linux machine with internet 2. Install Apache yum install httpd httpd-devel 3. After installation start apache /etc/init.d/httpd start 4. To change the port from default 80 port […]

Blocking Mouse Right Click

The code for Blocking the Right Click: Right click on the website is possible with the below code. The simple javascript code is written to block right click. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <script language="javascript" src="jsfunction.js"></script> </HEAD> <BODY> The code for blocking the Right click </BODY> </HTML> Below is the jsfunction.js […]