190670107040 summer internshiip ppt.pptx

ankitdhandhalya 11 views 29 slides Aug 31, 2024
Slide 1
Slide 1 of 29
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29

About This Presentation

no


Slide Content

GUJARAT TECHNOLOGICAL UNIVERSITY Chandkheda, Ahmedabad Affiliated SAL EDUCATION CAMPUS SAL INSTITUTE OF TECHNOLOGY AND ENGINEERING RESEARCH - AHMEDABAD “WEB DEVELOPMENT using PHP-LARAVEL” Submitted By KAVAR RUTVIK 190670107040 Under Subject of SUMMER INTERNSHIP (3170001) Of BACHELOR OF ENGINEERING In Computer Engineering Under the guidance of PROF. SUDHA PATEL External guide AMRUTA SEN

Internship joining latter

Internship completion certificate

SAL INSTITUTE OF TECHNOLOGY AND ENGINEERING RESEARCH   COMPUTER ENGINEERING  2022 CERTIFICATE     This is to certify that the “ WEB DEVELOPMENT using PHP-LARAVEL at EliteEvience Technologies ” has been carried out by KAVAR RUTVIK ( 190670107040) under my guidance in completion of Summer Internship (3170001) in Computer Branch 7 th Semester of Gujarat Technological University, Ahmedabad during the academic year 2022-2023.     Prof. Sudha Patel Prof . Sudha Patel Internal Guide Head of Department Computer Engineering Computer engineering SALITER SALITER

About PHP and Laravel Our internship was on PHP and Laravel. We got to learn many things in our internship like creating Websites. Why Framework are used . We even created small project with help of PHP and some external source. Why composer is used in website, likewise we got to know many things when it comes to development. PHP : PHP stands for : H ypertext P re-processor. It is a server side scripting language that is embedded in HTML. It is used to manage dynamic content like; database, session tracking, Processing of user request. PHP has large number of library functions which makes it flexible to develop the code in PHP. LARAVEL: Laravel is a web application framework with expressive ,elegant syntax. Laravel is a free, open-source PHP web framework created by Taylor Otwell and intended for the development of web application following the model-view-controller (MVC) architectural pattern . Easy to learn. Platform independent. Open source and free. Fast in performance. And Backend support in website development. Old name : Personal Home Page.

1 Introduction to PHP and Sublime and XAMP Installation 2 Basic Of PHP 3 Data types and Variable 4 Basic programs 5 Array and It Types 6 Functions 7 User Input 8 Email App (Small Project) 9 Brief Idea on Laravel 10 Conclusion Table of Content :

Introduction to PHP and sublime and XAMPP PHP code can be embedded in the XHTML document. The code must be enclosed within <?php and ?> Sublime text is lightweight up to 10MB in size, which makes performance very fast and It is Platform Independent and freely available. Below image shows the look of Sublime text editor version : 3.2.2.

XAMPP Installation : XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends . Every PHP file is stored as, XAMPP: C/xampp/htdocs/folder/file.php To run a PHP code , first you have to start Apache services in a xampp Control Pane.

Basic Of PHP: echo function :   In php if you want to print any text you have to write in echo function  <?php echo ”hello world ”; ?>

Datatype and Variable: PHP is a dynamically typed language. That is PHP has no type declaration. $variable_name =value If the value is not assigned to the variable then by default the value is NULL. The unsigned variable are called unbound variable. Here is a sample program of addition of three numbers ;

Here is a sample program of multiple and division operation :

Basic Programs: Here is a sample program of converting temperature into Fahrenheit from Celsius and reverse .

Area of circle, rectangle, triangle, triangle, and square :

Variable swapping :   Variable swapping is possible in two ways : using third variable without using third variable Using third variable :

Without using third variable :

Array and Types: Array is a collection of similar types of elements, but in PHP you can have elements of mixed type of together in single array. In each PHP, each element has two parts key and value . The key represents the Index at which the value of the element can be stored. for example, $mylist = array(10,20,30,40); for example, $mylist[0] = 10; $mylist=array(“Mahek” => “Ahmedabad”, “Uday” => “90”); PHP supports three types of arrays-   Numeric arrays Associative arrays Multidimensional arrays

1. Numeric arrays :

2.Associative arrays :

Multi-dimensional arrays :

Function The syntax of function definition is as follows- function name_of_function(parameter list) { Statements to be executed in function … … … }

User Input Embedding HTML code in PHP we can take input from user . First fill the detail and click submit button. HTML code to take input from user:

Email App (Small Project) :  In this we learned how send mail without using Gmail. Just we have to write receiver address and mail it. We used PHP Mailer to create this project. From Packagist.org . Here are the steps for how to send an e-mail using this E-mail sender Web App – Step 1 : First open your Gmail and click on setting - see all settings. After coming into the setting section you need to click on Accounts and import.

Step 2 : Then click on other google account setting .

Step 3 : After that, you need to click on Security and go for 2 step verification process. Enter your log in account’s password and confirm that it’s you. And start 2 step verification.

Step 4 : After that you need to click on App password, that is right under the 2-step Verification. And select Mail and Windows Computer option to generate password. Step 5 : Generate the password and click on DONE. It will be showing in yellow block. Step 6 : You need to write this generated password as it is in a PHP Code. HTML code:

CSS code:

PHP code:

After clicking the submit button. It show the alert box for successfully send the mail , otherwise it show alert for something went wrong.

Conclusion : Hence from this Internship we have studied various things of PHP. PHP is a great tool for writing dynamic web pages. One can easily learn PHP to makes their pages easier and more useful. We also learn to implement a real web app using these simple PHP skills. We also learn about arrays are an integral part of any programming language. PHP also gives us the ability to write our own functions. They also told us how to make website live. They taught us to make small message app also to make small email app.   Thank you
Tags