Blog : Online Interview Questions

JavaScript Tutorials
JavaScript get Current Date Time
JavaScript get Current Date Time

In this tutorial, we are going to see How to get the current Date time in JavaScript. We are going to use Javascript library function Date(). We will take an example to see how to format javascript date to MySQL format Y-m-d and H:i:s format.

Angularjs Tutorials
Angular CLI and its usage
Angular CLI and its usage

Angular has grown into an excellent framework over time which is used for the very purpose of developing applications across platforms. With the limited phase of the framework heading to the unlimited phase, you can expect many major features being added to this framework.

Angularjs Tutorials
On paste event in Angular 5
On paste event in Angular 5

In this tutorial, we have created a method to handle onpaste event in angular 2.

PHP Tutorials
Top 6 Open Source PHP CMS (Content Management System)
Top 6 Open Source PHP CMS (Content Management System)

entral interface. CMS is used to avoid complete coding for building the site from scratch. Some prefer not to use CMS and code their own site; however, many prefer to use CMS as there are readymade layouts, designs and more. PHP is one of the major server-side scripting language used all over the globe for web development. Today, we will discuss some of the best PHP compatible CMS available in the market. The shocking number of CMS available that is compatible with PHP makes it all the more difficult to sort the best one. However, keeping all major factors in mind, a list has been prepared after thorough research. Below are best open source PHP cms 1. WordPress WordPress is a famous CMS that has been used by millions of consumers and site developers in order to build unique and elegant websites for themselves or their clients respectively. WordPress has a steep learning curve so an amateur might not be able to explore or exploit its options to the optimum level. WordPress is compatible with third-party plug-ins too. You are welcome to add as many necessary plug-ins as possible after you purchase them, but you need to have enough slots in the WordPress plan to accommodate them. Every plugin has to be configured once when it is added and you can do that only from WP-Admin. WP-Admin is the WordPress interface which is quite user-friendly. Some of the excellent features offered by WordPress are blogging, e-commerce, form builder, iOS and Android Apps, retina ready, newsletter, podcasts, audio player and membership system. Pros of Wordpress:Highly customizable design along with features and functions Third party tools are compatible Controlling your hosting needs for quicker growth The open-source community provides unlimited knowledge onlineCons of Wordpress:Excellent technical knowledge is needed to set up and manage Coding knowledge required along with handling troubleshooting issues WordPress Coding knowledge to custom design the site Steep learning curve removes amateurs and inexperienced codersRead Best Wordpress Interview Questions 2. Concrete5 Concrete5 is an excellent and powerful CMS with the open-source management system. Its main purpose is to assist in building an intuitive and comprehensive website. It is a free open-source software licensed under the MIT software license. If you think that the software is free to use as there will not be much options or tools to use; your thinking is completely wrong. They provide lots of features and tools even after being free to use the software. Some of these excellent features offered by Concrete5 are – intuitive editing, SEO, quick installation, core support add-ons, multi-device optimization, form builder, content workflow and security. There is no limit for imagination or creativity; it is the same with Concrete5. There are no limits to creativity here, the tools and features assist you to achieve everything you can think of. Pros of Concrete5:Open-source, so the code is not restricted to one individual Drag and drop content blocks into the template Provides excellent SEO Complete control along with admin access to assign permissionsCons of Concrete5:A smaller community which leads to lesser support when needed Additional features and add-ons have to be purchased even though the basic software is free to use3. Joomla Joomla is again an open-source CMS that is not suitable for beginners. There is a particular reason for this; the coding done in CMS is complex and a beginner would be able to understand the coding, while still not understanding its logic or how it works. Joomla has a wide selection of common and business add-ons to create an intuitive, responsive and unique website. Most of these necessary business add-ons are free of cost from Joomla. Joomla has an active community, so support is always present for those who need it. Some of the important features that Joomla offer are – indexing, search, version control, permission control and rich text editor. The standard add-ons here are blogs, e-mail forms, discussion forums and photo galleries. Users can also add their input (content) if you provide the user-contribution page. Pros of Joomla:Quick installation Plug-ins and Add-ons Quick and Easy Navigation Advanced Admin controls Excellent SupportCons of Joomla:Limited customization options Paid plug-ins are required and some are not compatible Not recommended for beginnersRead Best Joomla Interview Questions 4. Drupal Drupal has been called by many terms over the years due to its diversified features and functions. However, it is still an excellent Content Management System (CMS). Drupal is unique in providing an application development framework that assists developers to go for a modular, interoperable method with a common interface. This is also an open-source platform supported by the users of diverse communities developing and supporting Drupal. You could think of Drupal as a more social media favorable CMS due to its functions and features which leans towards developing or easily building blogs, social networking pages, websites and more. Drupal supports a variety of content types like videos, texts, polls, statistics, blogs and more. Some of its excellent functions are scalability, reliability, manageability, and security which covers everything we need from a CMS. Pros of Drupal:Impressive amount of functionality Supports lots of content types Advanced User Management Graphics and Page Content Management Plug-ins SupportCons of Drupal:Need technical knowledge for installation Users need to get adjusted with the ever-changing Drupal scripts It takes the tool of efficiency comparativelyRead Best Drupal Interview Questions 5. Modx Modx is another excellent PHP compatible CMS. This veteran in the industry is more business-friendly. It has an innovative and powerful side of the content management system, that we can explore. Features like the ease of use and flexibility in creating a simple yet unique website are present here. Modx began with a notion – a CMS should never get in the way of design rather complement it. It is a wonderful notion and it holds true meaning here. Developers and designers would totally agree with this ideology of Modx. Some of the excellent features from Modx that have been evolving over the years are – highly customizable manager, all device compatibility, multilingual-multisite-multi-server support, SEO, security and content filtering. There are many more features that I will leave for you to figure out and use them as per your needs. Pros of Modx:Quick and efficient load time Template code is easy to work with SEO Ease of use Excellent community supportCons of Modx:User roles and permission settings are confusing Most plug-ins need an installer and it is a bit tricky Blog/article set up should be made easier6. SilverStripe SilverStripe is relatively a small open-source content management system that has huge growth potential. Even with lots of competition in the CMS market, SilverStripe has won a prestigious award and is thriving in the industry with hosting sites for many companies. Let's talk about the CMS and its benefits. It has excellent features like blogging, form builder, newsletter, manager, statistics and more. The interface might be a bit scary or intimidating for people with no technical knowledge. There are various sectors of this software that need improvement; however, the features offered covers up for most of these areas. Pros of SilverStripe:Powerful functionalities provide developers with unlimited possibilities to customize Easy to use interface for people with technical knowledge, while others can get used it in no time A good set of modules and extensions Active community A localized CMS with veteran developersCons of SilverStripe:Different menu for themes/modules/extensions required Shortage of readymade themes No third-party documentation They need more modules and add-ons dedicated to their CMSRead Best SilverStripe Interview Questions Final Thoughts A CMS is the foundation for every website and PHP is like its brain. The other features would act as various parts of the human body. When everything is in its proper place, the body is in excellent condition, so is the website. With that being said, I really hope this article is informative enough to help you figure out the best PHP CMS....

PHP Tutorials
Codeigniter and Angularjs Crud
Codeigniter and Angularjs Crud

Finding difficulty in creating a CRUD in Codeigniter? CRUD is an abbreviation for Create, Read, Update and Delete. If you are working on Codeigniter project, then this step-by-step process will help you to create a simple and easy CRUD with the help of Angular Js and Codeigniter. Some of the steps in the process are added for a Codeigniter framework i.e. create, delete, edit, list, search & pagination application.

PHP Tutorials
What is PHP 7? List some features of PHP7 ?
What is PHP 7? List some features of PHP7 ?

PHP7 is the latest version of popular PHP programming language that is considered to be the most sought-after versions till date. Released in December 2015, it is breakthrough in the world of programing language as it offers interesting features, fast performance, less deprecated functions, etc. More than 80% web developers rely on PHP language for their websites which reflects the fact that it is the most popular programing language. The advent of the latest version has been extremely crucial for web developers as it offers several benefits to them

Laravel Tutorials
Laravel Vs Symfony PHP Framework
Laravel Vs Symfony PHP Framework

e are a number of differences between the Laravel and Symfony PHP Framework. Laravel PHP Framework Today Laravel has been distinguished as the ideal PHP based system, which helps in making extraordinary customized web applications. It pursues the Model View Controller (MVC) architectural design. What's interesting to note is that although Laravel was initiated in 2011, it has succeeded in outshining its competitors such as Symfony or CakePHP and as such, it tops the list of best PHP based frameworks in 2019. Laravel has come into actuality including various Symfony components and subsequently takes plenty of its benefits. While Laravel works to keep the style, it also keeps things controllable by using a well-built and reliable Symfony backbone to permit an absolutely new way to program within its own MVC context. Laravel does a high-grade task of impressive some structure if we match it with CodeIgniter. Furthermore, it drops the architecture free for 3rd party plug-ins instead of supporting a more stable plugin structure. While in most cases it's much simpler to re-use an existing part, relying solely on third-party libraries can slowly cause you maintenance problems due to which bigger Symfony projects can convert clunky. Also Read: Laravel interview questions for 4 year experience Laravel, as the front-end PHP structure is the best one to use as it needn't bother with the use of complex information store highlights. At the point when it is about web application development, Laravel developers get a helpful method to make and execute API's and to set up directing. Reasons why to use Laravel Below are some points why you should use Laravel Php framework:Security: It provides you a few but essential things that make your application secure. Laravel uses the salted hashed password which means it never saves the password in plain text in the database. Modular: The framework of Laravel is designed on 20+ distinctive Object Oriented libraries, which are not present in any other PHP framework like Symfony, Zend Framework 2, CodeIgniter, CakePHP, and Phalcon. Unit-Testing: One more reason why Laravel is exceptionally well-known among designers and programmers. It provides facilities for Unit Testing and ensures that the new updates done by designers do not break anything in the application during the different tests. Built-In Tools: This wonderful PHP framework comes with plenty of built-in resources that are not obtainable on other trendy PHP frameworks. Some of these resources include verification, caching routing, and so on. Supports MVC Architecture: Keep in mind that transparency between business logic and presentation in development is vital. Laravel is based on MVC architecture and has a lot of built-in-functions; MVC (model-view-controller) boosts performance and gives better certification. This architecture helps in better documentation, improving performance, and has many built-in functions.Symfony PHP Framework 'Symfony' is one of the excellent frameworks that witness of the latest innovation. This web application framework becomes a hot choice for all web developers since its inception. Written in PHP Programming language, It has flexible architecture, which is an amazing quality of this framework. Being an amazing web application framework, it follows the model-view-controller (MVC) paradigm that works with the aim of creating robust applications in an enterprise context. In addition, the best thing about this framework is it allows developers to give the full control over the configuration from the foreign libraries to the directory structure to do full customization. The upgraded version of the Symfony framework enables clients to avail of the profit to the best. It not only builds a great web application but also facilitates customization. Integrating the best practices of the global world, Symfony is accepted widely by users. To develop robust web applications, you should surely opt for Symfony developer from the PHP programmers community if you really want to get the best out of your efforts. Also Read: Best Symfony Interview Questions to Prepare for Job Top reasons why to use Symfony Some features of our ideas that make Symfony unique and attractive:Faster and safer: There is hardly ever any security-related issue in the upgraded Symfony version to build the PHP framework. The upgraded version of Symfony is fairly faster than the previous one as it incorporates the better facilities along with the smooth functioning. The level of efficiency is measured in terms of performances. The idea of Symfony is the most excellent at the functional, business, tactical, and technical levels. Easy to operate: Basic, as well as the higher users, can happily operate the Symfony framework owing to its easy usability features. It satisfies the requirements of all kinds of clients in a short span of time. Guided documents, professional support, and help assist the beginners and basic users to use the framework in a better way to boost the performance and learn more. Better usages and quick development: In the competitive environment, you require something additional comfortable and the easy working mechanism to close your work timely. In this reference, the Symfony PHP framework is a highly-functional environment. Stable and sustainable: In the dynamic environment, our Symfony PHP framework is a stable and sustainable design that guarantees the console journey of developing every web-based application. Its fine usages not only increase the efficiency level but also allow developers to focus on the core areas and work according to desires and require a longer time. The more you use the Symfony, the more you will get the output. Irrespective of the time and usages, the Symfony PHP framework supports the application development around 3 years not including of any interruption. Expansion features: When we talk about core subjects of the web application, we basically mean the Symfony PHP framework for each web application. Complete integration of a variety of facilities is available for multiple uses for different projects. It facilitates the contribution or reusing the same idea on dissimilar platforms without breaking the integrity. ...

Laravel Tutorials
How To Generate PDF In Laravel
How To Generate PDF In Laravel

n PDF generation is one of the important tasks. You need to generate a pdf of invoices for product and for another purpose. Here in this article, we are going to use barryvdh/laravel-dompdf package for generating our PDF. Prerequisite: I am assuming that you have already installed the Laravel 6 Framework on your server. Getting started with Laravel 6 pdf generator Tutorial1. Installing laravel-dompdf package through composer. 2. Configuring barryvdh/laravel-dompdf package in our Laravel application. 3. Creating the Layout File for our application. 4. Creating a form blade for inputting order details from the user. 5. Adding routes for our application. 6. Creating migration files for the order_details table. 7. Running order_details table migration. 8. Creating a Model file for our table. 9. Creating a Laravel controller for saving order data. 10. Creating a view for displaying order Data. 11. Creating a route for downloading files. 12. Creating a pdf.blade.php file for designing our PDF. 13. Writing Function to generate and download PDF file in Controller.Also Read: Best Laravel Interview Questions Step1: Installing laravel-dompdf package through composer Open your command prompt and cd to your Laravel directory, then run below command. composer require barryvdh/laravel-dompdf Step2: Configuring barryvdh/laravel-dompdf package For configuration please open config/app.php file add the following configuration in provider and aliases array. 'providers' => [ .... Barryvdh\DomPDF\ServiceProvider::class, ], 'aliases' => [ .... 'PDF' => Barryvdh\DomPDF\Facade::class, ],The above step is required in order to register an external package and making its alias. Step3: Creating a layout for our application Create a directory named layouts in resources/view/ folder. After that create layout.blade.php file and the following line of code and save it. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/app.css"> </head> <body> <div class="container"> @yield('content') </div> </body> </html>Creating a form blade for inputting order details from the user. In this step, we are going to create a form from inputting order details from the customer. Create a new file named order.blade.php under the resources/view/order folder and place the following code in it. @extends('layout') @section('content') <form method="post" action="{{url('saveOrder')}}"> {{csrf_field()}} <div class="form-group"> <label for="full_name" class="control-label">Full Name</label> <input type="text" class="form-control" id="full_name" name="full_name" placeholder="John Deer"> </div><div class="form-group"> <label for="street_address" class="control-label">Street Address 1</label> <input type="text" class="form-control" id="street_address" name="street_address" placeholder="Street address, P.O. box, company name, c/o"> </div><div class="form-group"> <label for="city" class="control-label">City</label> <input type="text" class="form-control" id="city" name="city" placeholder="Smallville"> </div><div class="form-group"> <label for="zip_code" class="control-label">Zip Code</label> <input type="text" class="form-control" id="zip_code" name="zip_code" placeholder="#####"> </div><div class="form-group"> <button type="submit" class="btn btn-primary">Place Order!</button> </div></form> @endsectionAdding routes for our application. Open routes/web.php and add the following lines of code and save it. &lt?phpRoute::get('/', function () { return view('order'); }); Route::get('/index','OrderController@index'); Route::post('saveOrder','OrderController@store');Creating migration files for the order_details table. Run below command to create our migration php artisan make:migration create_order_details_tableOnce the migration file is created open it and add following code it. class CreateOrderDetailsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('order_details', function (Blueprint $table) { $table->increments('id'); $table->string('full_name'); $table->string('street_address'); $table->string('city'); $table->string('zip_code'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('order_details'); } }Running order_details table migration. Saving the changes and run below command to create our table php artisan migrateCreating a Model file for our table. Under the app directory create a new file named OrderDetails.php and following lines of code. &lt?phpnamespace App;use Illuminate\Database\Eloquent\Model;class OrderDetails extends Model { protected $fillable = ['full_name','street_address','zip_code','city']; }Creating our controller to saving order data. In app/Http/Controllers directory create a new file named OrderController.php and following lines of code. <?phpnamespace App\Http\Controllers;use Illuminate\Http\Request; use App\UserDetail;class OrderController extends Controller {public function store(Request $request){$order = new OrderDetails([ 'full_name' => $request->get('full_name'), 'street_address' => $request->get('street_address'), 'city' => $request->get('city'), 'zip_code' => $request->get('zip_code') ]);$order->save(); return redirect('/index'); } public function index(){$orders = OrderDetails::all();return view('index', compact('orders')); } }Creating a view for displaying order Data. Create a new file named index.blade.php under resources/view/order folder and place following code in it. @extends('layout') @section('content') <table class="table table-striped"> <thead> <th>ID</th> <th>Full Name</th> <th>Address</th> <th>City</th> <th>Zip Code</th> <th>Action</th> </thead> <tbody> @foreach($users as $user) <tr> <td>{{$user->id}}</td> <td>{{$user->full_name}}</td> <td>{{$user->street_address}}</td> <td>{{$user->city}}</td> <td>{{$user->zip_code}}</td> <td><a href="{{action('UserDetailController@downloadPDF', $user->id)}}">PDF</a></td> </tr> @endforeach </tbody> </table> @endsectionCreating a route for downloading files. In routes/web.php file add following route. Route::get('/downloadPDF/{id}','OrderController@downloadPDF');Creating a pdf.blade.php file for designing our PDF. Create a new file named pdf.blade.php under resources/view/ folder and place the following code in it. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <table class="table table-bordered"> <tr> <td> {{$user->full_name}} </td> <td> {{$user->street_address}} </td> </tr> <tr> <td> {{$user->city}} </td> <td> {{$user->zip_code}} </td> </tr> </table> </body> </html>Writing Function to generate and download PDF file in Controller. Add following code in your OrderController.php file public function downloadPDF($id){ $order = OrderDetail::find($id);$pdf = PDF::loadView('pdf', compact('order')); return $pdf->download('order_invoice.pdf');}That's it. Thanks for reading our post on Generating PDF in Laravel, if you face any issue and difficulties. Please let me know in the comments section....

Laravel Tutorials
How to set limit and offset in Laravel Eloquent.
How to set limit and offset in Laravel Eloquent.

from an offset. In this example, you will see how to use/ set the limit and offset in Laravel Framework. Note: This example work on Laravel 5.3 or above $condition=[]; $offset=0 // start row index. $limit=100 // no of records to fetch/ get .Model::where(['zone_id'=>1])->offset($offset)->limit($limit)->get();Above example returns you first 100 rows/ records from Model ( in your case name of Modal) and returns you an array of objects from the model....

Laravel Tutorials
Simple Steps to Remove Public from URL in Laravel
Simple Steps to Remove Public from URL in Laravel

Here in this Laravel Example, we are going to see tested way to remove public from URL in Laravel.

Laravel Tutorials
Laravel Pagination with array or object
Laravel Pagination with array or object

You have used Laravel Pagination with Eloquent results. Sometimes we have to do paginations in Laravel on arrays or custom objects. In this tutorial, we will see how to do Laravel manual pagination. Here we are going to use LengthAwarePaginator class of Laravel to create custom pagination in Laravel.

Laravel Tutorials
Create a Contact Form in Laravel
Create a Contact Form in Laravel

In this tutorial, you will see how to create a contact us form that will not only save the visitors details in your MySQL database as well also send an email to website admin. After reading this tutorial you will able to create a contact us page in Laravel for your website that will save users info in data and send and send user information on admin.

Laravel Tutorials
Top 5 Laravel CMS and their Features
Top 5 Laravel CMS and their Features

Here in this session, I am going to deal with the top 5 Laravel based CMS and their Features. When we are talking about the Framework vs. CMS's, we usually compare them both. But the CMSs are build up more in the way when compared to the framework

Node Js Tutorials
NODE JS Your Way To Success: Career, Features, Scopes and Roles
NODE JS Your Way To Success: Career, Features, Scopes and Roles

Node.js is an open source JavaScript platform that used to develop fast, scalable and lightweight server-side applications very easily. It follows the single thread with an even driven loop which helps to interact or handle many requests as possible.

Node Js Tutorials
All you need to know about Node JS ORM
All you need to know about Node JS ORM

To be simple, Node JS is the server side programming framework that allows the developers to build servers and other networks using javascript for the first time. This is also a runtime environment – an open cross-platform that easily allows the developers to test any software program, clearing any bugs and errors while it is still running. It gives a brief idea of how that particular software might work or behave once it is been executed. In simple words, Node JS helps to execute Javascript directly on the system without using any browser.

Write For Us.

Contribute the Community.