Tag: Business Website
Java | Configure Tomcat as a service on linux
Configure Tomcat service in Linux: These instructions are related to installing and running Tomcat 7 as a service, which means that it will be launched at system boot and will be closed properly on system shutdown. Running tomcat as a
How to use SimpleSAMLPhp as a Service Provider for authenticating users?
How to use SimpleSAMLPhp as a Service Provider for authenticating users? Some Basic steps to start using simplesamlphp. 1. Download stable version of SimpleSAMLphp from this link: Click here 2. Go to the directory or your workspace where you want
CakePHP | Using Elements for common code
Problem: How to separate redundant piece of code from your view using cakephp 3.0. Description: Let’s take an example. You have a list of products to display. We show products at many places such as 1. Show all products. 2.
PHP | Rename all the files in zip and then extract zip in PHP
Description: In one of our PHP projects, we wanted to rename all the files in zip folder and then extract the zip. The code for this is written below : $zip = new ZipArchive; $res = $zip->open($sourceFolder.’\’.$file); for ($i =
PHP | How to merge multiple PDFs into single file using pdftk
Using PDFtk we can merge multiple files into a single file using a command like this: Example : pdftk file1 file2 output file3. Sample code to accomplish the same using PHP is given below: $arrayOfPDFFiles; $outputPDFName = “mergeResult.pdf”; $dir =”Files/GeneratedPDFs/”;
Eclipse | Undo deleted file in Eclipse
Problem: Undo deleted file in Eclipse Solution: We were working on a project in Eclipse. Accidentally one of the PHP files got deleted in which code was written. Eclipse does not use the Linux ‘Trash’ but keeps local history from where we
java.sql.SQLException: Data truncated for column date at row 1
You may face this exception while trying to insert data in a mysql table using hibernate: java.sql.SQLException: Data truncated for column date at row 1 While there can be different reasons of this problem, in our case it was occurring
Zoho Creator or PHP based solution?
A lot of Zoho users want to extend the capability that Zoho CRM provides out of the box. For example, one of our clients wanted to build a custom Quote Generator. They initially wanted to get the customization done to
PHP | Convert date from one format to another in php
To convert date from one format to another we need to specify to php interpreter the format of our current value. See code below: /* In statement below, we are providing date and format to DateTime::createFromFormat function so that function