Web Prepration

Web Concept Tutorials

PHP

Laravel

Laravel is the PHP framework for web artisans. This is a reference to its carefully crafted components, as Laravel is one of the greatest examples of good programming practices and workflow. “Top App Development Companies” While it is based on other frameworks, such as Symfony, Laravel delivers a more digested version of a framework that is easy and ready-to-use and is heavily documented. Laravel is a prominent member of a new generation of web frameworks. It is a free, open-source PHP web framework, created by Taylor Otwell back in 2011 and intended for the development of web applications following the MVC model. Some of the key point features of Laravel : Restful routing. Inherent Database Version control A lightweight Blade Templating Engine Composer – An amazing tool that lets you manage your application’s third-party packages easily. Comes bundled with Eloquent – Built-in unit testing and simply readable impressive syntax Larger

read more >>
Interview Questions, Others, PHP

In this post, I am going to provided the significant PHP interview questions and answers for freshers who will be going for a job interview as a PHP developer or want to start career as PHP Developer. These PHP interview questions have been designed specially for freshers to get you familiar with the nature of questions you may face during your interview for the subject of PHP Programming Language. It will help you to prepare for technical interviews and online selection tests conducted during campus placement for freshers and job interviews for professionals.   1) What is PHP? Ans:-  PHP is a server side scripting language commonly used for web applications. PHP has many frameworks and CMS for creating websites. PHP is an acronym for “PHP: Hypertext Preprocessor.” It allows the developers to develop dynamic web applications. 2) Who is the father of PHP ? Ans:-  Rasmus Lerdorf is known as

read more >>
PHP

Sometimes, you need to get maximum key value of your array but you try to get with loop that’s not a good way and any function etc, but in bellow example you can see we can get biggest key value from our php array by using max() and array_keys(). So, let’s try to use in your code this way:

  WebpreprationI’m a full-stack developer.  My hobby and profession to write blog and programming tips that helps to others. I am a great admirer of PHP, Laravel, Codeigniter, AngularJS,  Vue.js,  Javascript, JQuery, WordPress, Plugin Development, Theme Development and Bootstrap from the early stage.   webprepration.com/

read more >>
CodeIgnitor, Others, PHP

In this post, I am going to explain “How to create custom library in CodeIgnitor”. CodeIgnitor has rich set of libraries which is located in “system/libraries”. Sometime we need some custom functionality for our requirement. Let’s see how to create custom own library in CodeIgnitor. Create Custom Library Step 1:- Go to application/libraries and create a new file Yourfilename_lib.php llike Mylibrary.php.

we can change above description according to requirement, Now create class with database connection and load pre-defined libraries.

If you want your libraries to be auto load always, the you can add your custom library in $autoload[‘libraries’]  option array in config.php file. Step 2:- If you want to load library in your controller then you can load library in controller file like

Step 3:- Now your library created and you can use your library method in controller like

  I hope you might have understood it

read more >>
CodeIgnitor, Laravel, PHP, Wordpress

In this article, I am going to explain “How to download file from url using curl in php”. Whenever you require to download file or image from URL using php CURL then you can refer this example. We can download image or file from URL and save in any specific location where want to store like local server. You can do that using get_file_contents() in php too, but i think it is good if you are doing that using PHP curl. But before use cURL you need to know what is cURL and how to use in php What is cURL CURL- Client URL Library CURL connects different types of servers and communicates with different types of protocols like http, https and ftp. In order to use CURL, you need to install the libcurl package. You can check whether it is installed or not using the phpinfo function. For this

read more >>