Step 1: Download Fresh Codeigniter 3 Step 2: Download fpdf library Step 3: Create mypdf.php file in “application/libraries” Folder
Expand +Category: Web Development
Express and Node JS Interview Questions & Answers
1. What is node.js? Node.js is an open-source, cross-platform JavaScript runtime environment built on Chrome’s V8 JavaScript engine. It allows developers to execute JavaScript code outside of a web browser, making it possible to run server-side applications using JavaScript. Node.js…
Expand +What is Callback Hell?
addition(2,function(addRes,err){ if(!err){ Subtract(addRes,function(subRes,err){ if(!err){ multiplication(subRes,function(mulRes,err){ console.log(mulRes); }); } }); } }); function addition(val,callback){ callback(val+5,false); } function Subtract(val,callback){ callback(val-3,false); } function multiplication(val,callback){ callback(val*5,false); } In the above code, there is three operation addition, Subtract and multiplication. Which is using a callback…
Expand +Basic Difference Between Callback and Promise
Callback: A Callback is a function that we call inside another function. A callback may or may not performed asynchronously. Normally callback runs after the parent function completes its operation. function calculate(x) { return x+2; } function display(y) { //execute…
Expand +Dynamically Add Watermark on the Uploaded Image Using PHP
Step 1.Make an index file (index.php) and Below Code Select Image File to Upload: Upload File: How to Generate PDF with Watermark in PHP using Dompdf Conclusion This is how to add WaterMark to an image using PHP. You can…
Expand +Mini Projects for Freshers using Node js, Express Js and MongoDB
Stateless Authentication With JSON Web Tokens, Node-local storage, and Express
Authentication using state of user sessions and cookie session ids has been an approach that has been working for centuries. But there has been a move to develop apps with the concept of statelessness in mind with the increase of service-oriented…
Expand +How to Generate PDF with Watermark in PHP using Dompdf
Dynamic PDF age is valuable when you need to enable the client to download the content or HTML content in a file on the web application. For this situation, the HTML content should be changed over to the PDF record…
Expand +Save HTML Form Record into MongoDB Database Using Express js and Mongoose js
Learn How to save or insert HTML Form records into Mongodb Database table using express js and mongoose js. In this article video you will learn about mongodb, express js and EJS template view engine. To insert a single record…
Expand +Render Mongodb Data Records in HTML using EJS View Engine and express js
Learn How to display database records on fronted browser using EJS view engine in express js. In this article video you will learn about mongodb, express js and EJS template view engine also how user can render MongoDB database table…
Expand +