Web Prepration

Web Concept Tutorials

PHP

Here you can study most popular and useful tutorials of PHP, we have lists of tutorials, Interview Questions and answers of  PHP.

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 >>
Others, PHP
Virtual host

In this article, I am going to explain “How to setup Virtual Host in Xampp server”, “Create Virtual Host” or Setup Virtual host in apache. before setup virtual host you must be aware of XAMPP Server. XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages. Why we need Virtual Host? Virtual hosting is a method for hosting multiple domain names on a single server. This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same host name. Virtual address means IP-based, you can use different IP or different name for each IP. Read Also: Integrate PayUmoney Payment Gateway Assume your site resides in http://localhost/client/site1 and when you want to run

read more >>
PHP

In this article, I am going to explain “How to Integrate PayUmoney Payment Gateway” in PHP with database. PayUmoney is one of the best and user friendly online payment gateway from India. It is very easy to integrate in web applications and App. Also you can send Payment link for a perticular amount through PayUmoney payment button. PayUmoney comes with all modern payment option like debit card, credit card, net banking, UPI, EMI option etc. Newbies are always curious to know “how to integrate PayUmoney with PHP website?”, “what is the PayUmoney integration process?” In this article , we will clear out all your doubts regarding integrating PayUmoney payment gateway in different types of websites, Apps and plugins, you just need to follow very easy steps to integrate it into you web application. Step 2. At the time of signup, you need to use your valid email address. As you

read more >>
CodeIgnitor, Laravel, PHP

In this post, I am going to explain “how to create rest api with authentication using passport” in laravel 6 application. Rest API is must be used when you are working with mobile application. when your application is preferred for a web app and the mobile app then you must have to create API for your mobile app development. However, Laravel provides an easy way to create Rest API using the passport package. if you need to authentication in your mobile app then you can easily do it using a passport. Laravel 6 Passport provides a way to create an auth token for validating users. Web services web service is very important when you are creating web and mobile apps. How to Create Rest API with Authentication Using Passport If you require to create API for mobile application As we know laravel is the most popular framework for API creation.

read more >>
CodeIgnitor, Others, PHP

In this post, I am going to explain “How to use CURL post request in CodeIgniter”. it will be a help to use API using curl request in code-igniter. You can fire post request, get request, put request and delete request in curl CodeIgniter 3. PHP CURL has some pre-built functions like curl_init(), curl_setopt(), curl_exec() etc. using these cURL functions to getting JSON data and we can use their data in our project. I don’t think you should use another library for this. Sometimes we need to work with third-party APIs and web services at that time we need to use CURL for getting request, post requests, delete requests, put requests, etc. PHP curl will help to post request with parameters and headers, we can get JSON response. Read Also: How To Integrate PayKun Payment Gateway In Laravel Here, I will give you a very simple example of Codeigniter curl

read more >>