Fixing IIS 500.19 Error for Static Files on Windows Server
One of the most common and frustrating issues in IIS on Windows servers is the 500-Internal Server Error, which often appears with vague details, especially when serving static files. The IIS 500.19 Error occurs when the server configuration is invalid,
Maintaining record history in database
When you are building a web-based multi/single tenant system or a desktop system which has a database at its backend to maintain records, keeping the history of records proves to be very useful in the long run from information and
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
New & Custom workspace in Illustrator
New & Custom workspace in Illustrator: 1. Go to the file or press Ctrl + N in Windows system / command + N on Mac: 2. This will open New window panel on your screen. You can change the title
How to move complete site from one location to another using gdrive for heavy files via terminal
Problem: How to move complete site from one location to another using gdrive for heavy files via terminal. Solution: 1. Log on to server where site is hosted via SSH. 2. Make a tar.gz of folder/directory of your site located. 3. Download
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 =
Moodle | New lang strings not accessible
In Moodle we had declared some new strings in lang file of a plugin like this: $string[‘LIBRARY_NAME’] = ‘E-Lab’; $string[‘BOOK_READ_SUCCESS’]=’Congratulations on reading the book’; We wanted to use it in view.php file of the plugin like this: $result=Get_String(‘BOOK_READ_SUCCESS’, ‘plugin name’);
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/”;
