├── .vscode
└── settings.json
├── 00. Introduction
├── 0.1 Intro.txt
└── PPT Personal .pptx
├── 01.HTML
├── HTML.txt
├── index.html
├── test.html
└── testImage.png
├── 02. CSS__Bootstrap
├── CSS.txt
├── Real-Estate-Bootstrap
│ ├── cover.jpg
│ ├── img1.jpg
│ ├── img2.jpeg
│ ├── img3.jpeg
│ ├── img4.jpg
│ ├── img5.jpeg
│ ├── img6.jpeg
│ ├── last.jpg
│ ├── middle.jpg
│ ├── pgs.png
│ ├── real-estate .css
│ └── real-estate.html
├── facebook-login
│ ├── facebbok.css
│ ├── facebook.html
│ └── style.css
├── hamberger.html
├── index.html
├── navbar.html
└── style.css
├── 03. Git & Github
├── Github.pptx
└── README.md
├── 04. Javascript
├── .vscode
│ └── settings.json
├── 02. JS.txt
├── Drum-kit
│ ├── README.md
│ ├── images.rar
│ ├── images
│ │ ├── crash.png
│ │ ├── kick.png
│ │ ├── snare.png
│ │ ├── tom1.png
│ │ ├── tom2.png
│ │ ├── tom3.png
│ │ └── tom4.png
│ ├── index.html
│ ├── index.js
│ ├── sounds.rar
│ ├── sounds
│ │ ├── crash.mp3
│ │ ├── kick-bass.mp3
│ │ ├── snare.mp3
│ │ ├── tom-1.mp3
│ │ ├── tom-2.mp3
│ │ ├── tom-3.mp3
│ │ └── tom-4.mp3
│ └── styles.css
├── cheatsheet.js
├── index.html
├── practice
│ ├── .vscode
│ │ └── settings.json
│ ├── 1 time.html
│ ├── 10 number.html
│ ├── 11 array.html
│ ├── 12 Form Valid.html
│ ├── 13 Function.html
│ ├── 2 intro.html
│ ├── 3 Script.html
│ ├── 4 Var.html
│ ├── 5 Number.html
│ ├── 6 plus var.html
│ ├── 7 opt.html
│ ├── 8 obj.html
│ └── 9 string.html
└── simpleCalc
│ ├── index.css
│ ├── index.html
│ └── index.js
├── 04. jQuery
├── cheatsheet.js
├── jquery.txt
└── ufoGame
│ ├── craft.jpg
│ ├── index.html
│ ├── scriptApproach1.js
│ └── scriptApproach2.js
├── 05. Firebase
├── Intro
│ ├── Firebase.PNG
│ ├── auth.PNG
│ ├── firebase power.PNG
│ └── firebase.txt
└── chat_app
│ ├── index.css
│ ├── index.html
│ └── index.js
├── 06. Intro To Backend
└── Intro to Backend.pptx
├── 07. PHP
├── Contact-Form
│ ├── bootstrap.min.css
│ ├── index.php
│ └── mailSetup.txt
├── PHP Basics
│ ├── 0.Installation.txt
│ ├── 1-hello.php
│ ├── 10-function.php
│ ├── 11-array.php
│ ├── 12-sort.php
│ ├── 13-date.php
│ ├── 2-hellotag.php
│ ├── 3-case.php
│ ├── 4-var.php
│ ├── 5-echo.php
│ ├── 6-string.php
│ ├── 7-if-else.php
│ ├── 8-switch-case.php
│ ├── 9-loop.php
│ ├── form-get-post
│ │ ├── Cross-Site-ScriptingXSS.png
│ │ ├── form.php
│ │ ├── get_post.php
│ │ └── post.php
│ ├── include and required
│ │ ├── aboutUs.php
│ │ ├── contactUs.php
│ │ ├── include
│ │ │ ├── footer.php
│ │ │ └── header.php
│ │ └── index.php
│ └── superglobals.txt
├── PHP_syllabus.txt
└── intro to PHP.pptx
├── 08. Databsase
├── Intro to Database.pptx
├── SQL.pptx
├── sql vs nosql.PNG
└── students.sql
├── 09. PHP_mysql Project
├── addPost.php
├── config
│ ├── config.php
│ └── db.php
├── editpost.php
├── index.php
├── post.php
└── templates
│ ├── bootstrap.css
│ ├── footer.php
│ ├── header.php
│ └── navbar.php
├── 10. Ajax
├── Ajax.pptx
├── JSON vs XML.pptx
├── ajax.txt
└── practice
│ ├── AJAX_JSON
│ ├── index.html
│ └── index.json
│ ├── AJAX_PHP
│ ├── index.php
│ └── suggest.php
│ └── AJAX_XML
│ ├── index.html
│ └── note.xml
├── 11. Node
├── Expressjs.pptx
├── Functional Expression.js
├── Node js.pptx
├── expressRoute
│ ├── .gitignore
│ ├── Routes.js
│ ├── package-lock.json
│ ├── package.json
│ └── views
│ │ └── index.html
├── modules and require
│ ├── count.js
│ ├── index.js
│ └── stuff.js
├── notes.txt
├── reqRes.png
├── serverWithExpress
│ ├── .gitignore
│ ├── express.js
│ ├── index.html
│ ├── package-lock.json
│ └── package.json
└── serverWithNode
│ ├── index.html
│ └── index.js
├── 12. EJS
└── intro
│ ├── .gitignore
│ ├── index.js
│ ├── notes.txt
│ ├── package-lock.json
│ ├── package.json
│ ├── todo.txt
│ └── views
│ ├── Home.ejs
│ ├── contact.ejs
│ ├── partials
│ ├── footer.ejs
│ ├── header.ejs
│ └── nav.ejs
│ └── profile.ejs
├── 13. Mongo
├── APIs.pptx
├── Todo-List-App
│ ├── .gitignore
│ ├── config
│ │ └── db.js
│ ├── controllers
│ │ └── todo_conroller.js
│ ├── index.js
│ ├── model
│ │ └── todoSchema.js
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ └── assets
│ │ │ ├── styles.css
│ │ │ └── todo-list.js
│ ├── todo.txt
│ └── views
│ │ └── todo.ejs
├── TodoListWithMongo
│ ├── .gitignore
│ ├── config
│ │ └── db.js
│ ├── controllers
│ │ └── todo_conroller.js
│ ├── index.js
│ ├── model
│ │ └── todoSchema.js
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ └── assets
│ │ │ ├── styles.css
│ │ │ └── todo-list.js
│ ├── routes
│ │ └── todoRoute.js
│ ├── todo.txt
│ └── views
│ │ └── todo.ejs
├── mogo.pptx
└── todo.txt
├── 14. Project-Node-EJS
├── .gitignore
├── app.js
├── config
│ └── db.js
├── controller
│ └── index.js
├── index.js
├── models
│ └── posts.js
├── package-lock.json
├── package.json
├── public
│ └── css
│ │ └── styles.css
└── views
│ ├── compose.ejs
│ ├── contact.ejs
│ ├── home.ejs
│ └── partials
│ ├── footer.ejs
│ └── header.ejs
├── 15. React
├── React.pptx
├── Redux.pptx
└── Tutorial
│ ├── .gitignore
│ ├── README.md
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── index.html
│ └── styles.css
│ └── src
│ ├── App.js
│ ├── components
│ ├── Button
│ │ └── Button.jsx
│ ├── ClassCompoenet.jsx
│ ├── CodeWithJSX.jsx
│ ├── CodeWithoutJsx.jsx
│ ├── Functional component.jsx
│ └── Props
│ │ ├── Parent.jsx
│ │ └── Profile.jsx
│ ├── index.css
│ ├── index.js
│ └── pages
│ ├── About.jsx
│ └── Home.jsx
├── 16. Vue
├── Basics-cdn
│ ├── intro
│ │ ├── Basics1
│ │ │ ├── index.html
│ │ │ └── index.js
│ │ └── Basics2
│ │ │ ├── assets
│ │ │ ├── 1.jpg
│ │ │ ├── 2.jpg
│ │ │ └── 3.jpg
│ │ │ ├── index2.html
│ │ │ ├── index2.js
│ │ │ └── style.css
│ └── randomUserGenerator
│ │ ├── index.css
│ │ ├── index.html
│ │ └── index.js
├── Basics-cli
│ └── Task-Tracer-vue
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── babel.config.js
│ │ ├── db.json
│ │ ├── package-lock.json
│ │ ├── package.json
│ │ ├── public
│ │ ├── favicon.ico
│ │ └── index.html
│ │ ├── src
│ │ ├── App.vue
│ │ ├── assets
│ │ │ └── logo.png
│ │ ├── components
│ │ │ ├── AddTask.vue
│ │ │ ├── Button.vue
│ │ │ ├── Footer.vue
│ │ │ ├── Header.vue
│ │ │ ├── Task.vue
│ │ │ └── Tasks.vue
│ │ ├── main.js
│ │ ├── router
│ │ │ └── index.js
│ │ ├── todo.txt
│ │ └── views
│ │ │ ├── About.vue
│ │ │ └── Home.vue
│ │ └── vue.config.js
├── Vue.pptx
└── notes.txt
├── 17. MERN Project
├── LICENSE
├── README.md
├── client
│ ├── .gitignore
│ ├── README.md
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── index.html
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ └── src
│ │ ├── App.js
│ │ ├── App.test.js
│ │ ├── assets
│ │ ├── About.png
│ │ ├── Bug.png
│ │ ├── Feature.png
│ │ ├── Login_1.png
│ │ ├── Login_2.png
│ │ ├── Notfound.png
│ │ ├── Signup_1.png
│ │ ├── Signup_2.png
│ │ ├── Signup_3.png
│ │ └── home.png
│ │ ├── component
│ │ ├── BugForm.js
│ │ ├── BugIllistration.js
│ │ ├── FeatureForm.js
│ │ ├── Footer.js
│ │ ├── Navbar.js
│ │ ├── NewNote.js
│ │ ├── NewnoteBox.js
│ │ ├── NotFoundIllistration.js
│ │ └── NotesCard.js
│ │ ├── history.js
│ │ ├── index.js
│ │ ├── redux
│ │ ├── actionTypes
│ │ │ ├── notesConstants.js
│ │ │ └── userConstants.js
│ │ ├── actions
│ │ │ ├── notesAction.js
│ │ │ └── userAction.js
│ │ ├── reducers
│ │ │ ├── NotesReducer.js
│ │ │ └── userReducer.js
│ │ └── store.js
│ │ ├── screen
│ │ ├── Bug.js
│ │ ├── EditNoteScreen.js
│ │ ├── Home.js
│ │ ├── LoginScreen.js
│ │ ├── NewNoteScreen.js
│ │ ├── Notfound.js
│ │ └── SigninScreen.js
│ │ ├── scrolltotop.js
│ │ ├── setupTests.js
│ │ └── styles
│ │ ├── FooterStyling.js
│ │ ├── LoginScreenStyle.js
│ │ ├── NavbarStyling.js
│ │ ├── NewnoteStyling.js
│ │ └── NotesStyling.js
├── server
│ ├── .gitignore
│ ├── config
│ │ ├── db.js
│ │ └── sendgrid.js
│ ├── controller
│ │ ├── NotesController.js
│ │ ├── UserController.js
│ │ └── resetPasswordController.js
│ ├── http_tests
│ │ ├── NotesRoutetest.http
│ │ ├── forgetPasstest.http
│ │ └── userRoutetest.http
│ ├── index.js
│ ├── mailer
│ │ └── forgetPassword_mailer.js
│ ├── middleware
│ │ └── authenticate.js
│ ├── models
│ │ ├── notesModel.js
│ │ ├── resetPasswordModel.js
│ │ └── userModel.js
│ ├── package-lock.json
│ ├── package.json
│ ├── routes
│ │ ├── authRouter.js
│ │ ├── forgetPassRouter.js
│ │ ├── homeRoute.js
│ │ └── notesRoute.js
│ └── utils
│ │ └── generateToken.js
└── todo.md
├── CODE_OF_CONDUCT.md
├── Course content.docx
├── LICENSE
├── Project-1-Photo-Gallery
├── index.html
└── styles.css
└── README.md
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "liveServer.settings.port": 5501
3 | }
--------------------------------------------------------------------------------
/00. Introduction/0.1 Intro.txt:
--------------------------------------------------------------------------------
1 | Self intro
2 | What is web dev
3 | Front end
4 | backend
5 |
6 | What's in the module
7 | timeline
8 | Chrome dev tools
9 | how to become a better developer
10 | What is i get stuck
11 | site for practice and tutorials
12 |
13 |
14 |
--------------------------------------------------------------------------------
/00. Introduction/PPT Personal .pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/00. Introduction/PPT Personal .pptx
--------------------------------------------------------------------------------
/01.HTML/HTML.txt:
--------------------------------------------------------------------------------
1 | ########### CONTENT ##############
2 |
3 | 1. Introduction
4 | 2. What is HTML
5 | 3. EDITOR for coding & Syntax and structure (code 1st in notepad next in vs code)and
6 | 4. head, body tag, title and meta tag (Rest code from here)
7 | 5. Your 1st web page
8 | 6. Heading and paragraph (h1 - h6 p)
9 | 7. Other HTML tags
10 | - b, br, hr, i
11 | 9. The img tags and audio tags
12 | 10. HTML Attributes
13 | - src in img
14 | - href in anchor tag
15 | - data- custom Attributes
16 | - and many more ...
17 | 11. HTML comments
18 | 12. HTML links (anchor tags)
19 | 13. HTML list (li tag)
20 | - Ordered
21 | - Unordered
22 | 14. Block Level elements and Inline ELements (like div and span tag)
23 | 15. HTML Tables
24 | 14. ID's and Classes
25 | 15. HTML Form
26 | 16. Adding CSS
27 | - Inline
28 | - Internal
29 | - External
30 | 17. Adding JS
31 | - Internal
32 | - External
33 |
34 |
35 |
36 |
44 |
45 |
46 | SHORTCUTS of Vs code
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/01.HTML/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
facebook
19 |
20 | Facebook helps you connect and share with the people in your
21 | life.
22 |
23 |
24 |
25 |
26 |
38 |
Create a Page for a celebrity, band or business
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/02. CSS__Bootstrap/hamberger.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
Hamburger
8 |
19 |
20 |
21 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/02. CSS__Bootstrap/navbar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Navbar
5 |
33 |
34 |
35 |
55 |
56 |
57 | A Flexible Layout must have a parent element with the
58 | display property set to flex .
59 |
60 |
61 |
62 | Direct child elements(s) of the flexible container automatically becomes
63 | flexible items.
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/03. Git & Github/Github.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/03. Git & Github/Github.pptx
--------------------------------------------------------------------------------
/04. Javascript/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "liveServer.settings.port": 5501
3 | }
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/README.md:
--------------------------------------------------------------------------------
1 | # Drum-kit
2 | A small project for drum lovers. This is a virtual drum kit with typical drum sounds combined with appropriate instruments
3 |
4 | demo:https://prasundas99.github.io/Drum-kit/
5 |
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/images.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/images.rar
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/images/crash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/images/crash.png
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/images/kick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/images/kick.png
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/images/snare.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/images/snare.png
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/images/tom1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/images/tom1.png
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/images/tom2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/images/tom2.png
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/images/tom3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/images/tom3.png
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/images/tom4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/images/tom4.png
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
Drum Kit
9 |
10 |
11 |
12 |
13 |
Drum Kit
14 |
15 | w
16 | a
17 | s
18 | d
19 | j
20 | k
21 | l
22 |
23 |
24 |
25 |
26 |
27 | Made with ❤️ by Shubham .
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/sounds.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/sounds.rar
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/sounds/crash.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/sounds/crash.mp3
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/sounds/kick-bass.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/sounds/kick-bass.mp3
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/sounds/snare.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/sounds/snare.mp3
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/sounds/tom-1.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/sounds/tom-1.mp3
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/sounds/tom-2.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/sounds/tom-2.mp3
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/sounds/tom-3.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/sounds/tom-3.mp3
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/sounds/tom-4.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. Javascript/Drum-kit/sounds/tom-4.mp3
--------------------------------------------------------------------------------
/04. Javascript/Drum-kit/styles.css:
--------------------------------------------------------------------------------
1 | body {
2 | text-align: center;
3 | background-color: #0e1322;
4 | }
5 |
6 | h1 {
7 | font-size: 5rem;
8 | color: #DBEDF3;
9 | font-family: "Arvo", cursive;
10 | text-shadow: 3px 0 #a7064e;
11 |
12 | }
13 |
14 | footer {
15 | color: #c6d6db;
16 | font-family: sans-serif;
17 | }
18 |
19 | .w {
20 | background-image: url("images/tom1.png");
21 | }
22 |
23 | .a {
24 | background-image: url("images/tom2.png");
25 | }
26 |
27 | .s {
28 | background-image: url("images/tom3.png");
29 | }
30 |
31 | .d {
32 | background-image: url("images/tom4.png");
33 | }
34 |
35 | .j {
36 | background-image: url("images/snare.png");
37 | }
38 |
39 | .k {
40 | background-image: url("images/crash.png");
41 | }
42 |
43 | .l {
44 | background-image: url("images/kick.png");
45 | }
46 |
47 | .set {
48 | margin: 10% auto;
49 | }
50 |
51 | .pressed {
52 | box-shadow: 0 3px 4px 0 #DBEDF3;
53 | opacity: 0.5;
54 | }
55 |
56 | .red {
57 | color: rgb(255, 8, 132);
58 | }
59 |
60 | .drum {
61 | outline: none;
62 | border: 10px solid #2e4585;
63 | font-size: 5rem;
64 | font-family: 'Arvo', cursive;
65 | line-height: 2;
66 | font-weight: 900;
67 | color: #be286c;
68 | text-shadow: 3px 0 #DBEDF3;
69 | border-radius: 15px;
70 | display: inline-block;
71 | width: 150px;
72 | height: 150px;
73 | text-align: center;
74 | margin: 10px;
75 | background-color: white;
76 | }
77 |
78 | a{
79 | color: #be286c;
80 | }
--------------------------------------------------------------------------------
/04. Javascript/practice/.vscode/settings.json:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/04. Javascript/practice/1 time.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
My First JavaScript
5 |
6 |
10 | Click me to display Date and Time.
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/04. Javascript/practice/10 number.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
JavaScript Numbers
5 |
6 |
Floating point arithmetic is not always 100% accurate.
7 |
8 |
9 |
10 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/04. Javascript/practice/11 array.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
JavaScript Arrays
5 |
6 |
7 |
8 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/04. Javascript/practice/12 Form Valid.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
19 |
20 |
--------------------------------------------------------------------------------
/04. Javascript/practice/13 Function.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
A function can be stored in a variable:
5 |
6 |
7 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/04. Javascript/practice/2 intro.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
What is javascript?
5 |
6 |
JavaScript can change HTML content.
7 |
8 |
12 | Click Me!
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/04. Javascript/practice/3 Script.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
JavaScript in Body
5 |
6 |
HI
7 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/04. Javascript/practice/4 Var.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
My First Web Page
12 |
My First Paragraph.
13 |
14 |
15 |
16 |
Calculate Shubham Age
17 |
Calculate Anik Age
18 |
19 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/04. Javascript/practice/5 Number.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
JavaScript Numbers
5 |
6 |
Number can be written with or without decimals.
7 |
8 |
9 |
10 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/04. Javascript/practice/6 plus var.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
JavaScript Variables
5 |
6 |
In this example, x, y, and z are variables.
7 |
8 |
9 |
10 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/04. Javascript/practice/7 opt.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
The + Operator
5 |
6 |
7 |
8 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/04. Javascript/practice/8 obj.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
JavaScript Objects
5 |
6 |
7 |
8 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/04. Javascript/practice/9 string.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
JavaScript String Properties
5 |
6 |
The length property returns the length of a string:
7 |
8 |
9 |
10 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/04. Javascript/simpleCalc/index.js:
--------------------------------------------------------------------------------
1 | function dis(val) {
2 | document.getElementById("input").value += val;
3 | }
4 |
5 | function displayAnswer() {
6 | let x = document.getElementById("input").value;
7 | console.log(typeof x);
8 | let y = eval(x);
9 | document.getElementById("input").value = y;
10 | }
11 |
12 | function clearAnswer() {
13 | document.getElementById("input").value = "";
14 | }
15 |
16 | function backspaceEmple() {
17 | var element = document.getElementById("input").value; //79
18 | document.getElementById("input").value = element.substring(
19 | 0,
20 | element.length - 1
21 | );
22 | }
23 |
--------------------------------------------------------------------------------
/04. jQuery/jquery.txt:
--------------------------------------------------------------------------------
1 | 1. Intro
2 | - simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM manipulation.
3 | - Contains:-
4 | HTML/DOM manipulation
5 | CSS manipulation
6 | HTML event methods
7 | Effects and animations
8 | AJAX
9 | Utilities
10 |
11 |
12 | 2. Why jQuery
13 | - Companies
14 | * Google
15 | * IBM
16 | * Microsoft
17 | * Netflix
18 |
19 |
20 | 3. Syntax
21 | - $(selector).action()
22 | - $(document).ready(function(){ // run any jQuery code after document is finished loading (is ready).
23 |
24 | // jQuery methods will be here...
25 |
26 | });
27 | EX:-
28 | {
29 | $('p').click(function)
30 | }
31 |
32 | console.log(jQuery) == console.log($)
33 |
34 |
35 | 4. jQuery Events (generally actions)
36 | - $(selector).click()
37 | - $(selector).dbclick()
38 | - $(selector).mouseenter()
39 | - $(selector).mouseleave()
40 | - $(selector).mouseup()
41 | - $(selector).mousedown()
42 |
43 |
44 | 5. GET and SET content
45 | - .text()
46 | - .html()
47 | - .val()
48 | - .attr()
49 |
50 |
51 | 6. Add Html content
52 | - .append()
53 | - .prepend()
54 | - .after(), before()
55 |
56 |
57 | 7. Manipulating CSS
58 | - .css()
59 | - .addClass()
60 | - .removeClass()
61 | - toggleClass()
62 |
63 | 8. Animation
64 | - .hide(speed, callback) -.show(speed, callback) - .toggle(speed, callback)
65 | - slideDown(speed, callback) - slideUp(speed, callback) - slideToggle(speed, callback)
66 | - .animate({params}, speed, callback);
67 |
68 | projects:
69 | - ufoGame
--------------------------------------------------------------------------------
/04. jQuery/ufoGame/craft.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/04. jQuery/ufoGame/craft.jpg
--------------------------------------------------------------------------------
/04. jQuery/ufoGame/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
Spaceship Game
7 |
21 |
22 |
23 |
Spaceship
24 |
25 |
26 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/04. jQuery/ufoGame/scriptApproach1.js:
--------------------------------------------------------------------------------
1 | /* In js:
2 | document.getElementByID("spaceship");
3 | in jQuery
4 | $('#spaceship)
5 | */
6 | $(document).ready(function () {
7 | var spaceship = $("#spaceship");
8 |
9 | //Changing css via jQuery
10 | spaceship.css({
11 | //css function
12 | position: "absolute", // Which is static by default
13 | left: 500,
14 | top: 200,
15 | width: 160,
16 | height: 120,
17 | });
18 |
19 | //Now i want to change the spaceship position using my keys
20 | var ismovingRight = false;
21 | var ismovingDown = false;
22 | var ismovingUp = false;
23 | var ismovingLeft = false;
24 | //keydown event
25 | $(document).on("keydown", function (e) {
26 | /*Cheaking keyCode */
27 | console.log(e.keyCode);
28 |
29 | var kc = e.keyCode;
30 | if (kc == 39) {
31 | ismovingRight = true;
32 | }
33 | if (kc == 40) {
34 | ismovingDown = true;
35 | }
36 | if (kc == 37) {
37 | ismovingLeft = true;
38 | }
39 | if (kc == 38) {
40 | ismovingUp = true;
41 | }
42 | });
43 |
44 | //keyup event
45 | $(document).on("keyup", function (e) {
46 | var kc = e.keyCode;
47 | if (kc == 39) {
48 | ismovingRight = false;
49 | }
50 | if (kc == 40) {
51 | ismovingDown = false;
52 | }
53 | if (kc == 37) {
54 | ismovingLeft = false;
55 | }
56 | if (kc == 38) {
57 | ismovingUp = false;
58 | }
59 | });
60 |
61 | //writing function for smooth flow of spaceship
62 | var speed = 6;
63 | function move() {
64 | if (ismovingRight) {
65 | spaceship.css("left", spaceship.position().left + speed);
66 | }
67 | if (ismovingDown) {
68 | spaceship.css("top", spaceship.position().top + speed);
69 | }
70 | if (ismovingUp) {
71 | spaceship.css("top", spaceship.position().top - speed);
72 | }
73 | if (ismovingLeft) {
74 | spaceship.css("left", spaceship.position().left - speed);
75 | }
76 | }
77 |
78 | setInterval(move, 10);
79 | });
80 |
81 | // Can also be used to make snake games
82 |
--------------------------------------------------------------------------------
/04. jQuery/ufoGame/scriptApproach2.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function () {
2 | const spaceship = $("#spaceship");
3 |
4 | // jquery code
5 | spaceship.css({
6 | position: "absolute",
7 | left: 500,
8 | top: 200,
9 | width: 160,
10 | height: 120,
11 | });
12 |
13 | var interval;
14 |
15 | $(document).on("keydown", function (e) {
16 | console.log(e.originalEvent.keyCode);
17 | var keyCode = e.originalEvent.keyCode;
18 |
19 | interval = setInterval(move, 100, keyCode); // infinitely cholbe
20 | });
21 |
22 | $(document).on("keyup", function (e) {
23 | console.log(e.originalEvent.key);
24 |
25 | clearInterval(interval);
26 | });
27 |
28 | let speed = 6;
29 | function move(keyCode) {
30 | if (keyCode === 39) {
31 | spaceship.css("left", spaceship.position().left + speed);
32 | }
33 | if (keyCode === 40) {
34 | spaceship.css("top", spaceship.position().top + speed);
35 | }
36 | if (keyCode === 38) {
37 | spaceship.css("top", spaceship.position().top - speed);
38 | }
39 | if (keyCode === 37) {
40 | spaceship.css("left", spaceship.position().left - speed);
41 | }
42 | }
43 | });
44 |
45 | // 1. Spaceship css jaate ota page er middle a chole ase
46 | // 2. key up event r key down er event
47 |
48 | // key-down --> key press (key te haath ta press kore rekhechi)
49 | // key-up --> key un-press (key theke haath ta chere debe jokhon)
50 |
--------------------------------------------------------------------------------
/05. Firebase/Intro/Firebase.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/05. Firebase/Intro/Firebase.PNG
--------------------------------------------------------------------------------
/05. Firebase/Intro/auth.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/05. Firebase/Intro/auth.PNG
--------------------------------------------------------------------------------
/05. Firebase/Intro/firebase power.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/05. Firebase/Intro/firebase power.PNG
--------------------------------------------------------------------------------
/05. Firebase/Intro/firebase.txt:
--------------------------------------------------------------------------------
1 | college Project
2 |
3 | Backend as service
4 |
5 | hosted on GCP
6 | extention of gcp
7 | moto- : the best code is no code at all
8 |
9 | 1.Deploy
10 | 2.Auth
11 | 3.db
12 | 4. Cloud storage
13 |
14 |
15 | We will work on database(most common)...
16 | rest will depend upto u jokhon lagbe bole debo cause we will do them in backend
17 |
18 |
19 |
20 | main db
21 |
22 | secondary : hosting auth
23 |
24 | reference: https://fireship.io/lessons/firebase-quickstart/
25 |
26 |
27 |
28 |
29 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/05. Firebase/chat_app/index.css:
--------------------------------------------------------------------------------
1 | #site-title {
2 | padding-top: 40px;
3 | width: 100%;
4 | margin: auto;
5 | text-align: center;
6 | font-family: "Roboto", sans-serif;
7 | color: #0064c9;
8 | font-weight: 900;
9 | }
10 |
11 | body {
12 | margin: 0;
13 | background-color: rgb(238, 238, 238);
14 | font-family: "Helvetica Neue", "Roboto", sans-serif;
15 | height: 800px;
16 | }
17 |
18 | #container {
19 | width: 360px;
20 | height: 540px;
21 | overflow-y: auto;
22 | margin: 0px auto;
23 | background-color: rgb(222, 238, 253);
24 | border-radius: 10px;
25 | padding: 20px 20px 20px 20px;
26 | box-shadow: 4px 8px 22px 0 rgba(0, 0, 0, 0.3);
27 | }
28 |
29 | #main-container {
30 | width: 320px;
31 | height: 350px;
32 | overflow-y: auto;
33 | margin: 0px auto;
34 | background-color: #fff;
35 | border-radius: 4px;
36 | padding: 10px 20px 10px 20px;
37 | color: #000;
38 | }
39 |
40 | .bubble-left {
41 | margin-top: 5px;
42 | width: 75%;
43 | border-radius: 15px;
44 | padding: 10px 20px 10px 20px;
45 | display: flex;
46 | box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25);
47 | float: left;
48 | background-color: #1289fe;
49 | color: #fff;
50 | }
51 |
52 | .bubble-right {
53 | margin-top: 5px;
54 | width: 75%;
55 | border-radius: 15px;
56 | padding: 10px 20px 10px 20px;
57 | display: flex;
58 | box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25);
59 | float: right;
60 | background-color: #1289fe;
61 | color: #fff;
62 | }
63 |
64 | #controller {
65 | width: 320px;
66 | height: 100px;
67 | margin: 0px auto;
68 | margin-top: 7px;
69 | }
70 |
71 | .form-control {
72 | border: none;
73 | }
74 |
75 | textarea {
76 | margin-top: 20px;
77 | resize: none;
78 | }
79 |
80 | #send {
81 | margin-top: 14px;
82 | float: left;
83 | }
84 |
--------------------------------------------------------------------------------
/05. Firebase/chat_app/index.js:
--------------------------------------------------------------------------------
1 | var database = firebase.database();
2 |
3 | console.log(database);
4 |
5 | //Taking name of user
6 | var Name = prompt("Enter your name : ", "");
7 |
8 | //Write data to database
9 | function writeUserData() {
10 | var message = document.getElementById("message").value;
11 | database.ref("messages/").push().set({
12 | message: message,
13 | name: Name,
14 | });
15 | document.getElementById("message").value = "";
16 | }
17 |
18 |
19 | // read data
20 | database.ref("messages/").on('value', (snapshot) => {
21 | const messages = snapshot.val();
22 | console.log(messages);
23 | // previous message delete
24 | document.getElementById("main-container").innerHTML = "";
25 |
26 | for (var key in messages) {
27 | var message = messages[key];
28 | console.log(message.message);
29 | console.log(message.name);
30 |
31 | const x = document.createElement("p");
32 | x.innerHTML = message.name + ": " + message.message;
33 | console.log(x);
34 | if (message.name === Name) {
35 | x.classList.add("bubble-right");
36 | } else {
37 | x.classList.add("bubble-left");
38 | }
39 |
40 | // add to html document
41 | document.getElementById("main-container").appendChild(x);
42 |
43 | }
44 | });
45 |
46 |
47 |
48 |
49 | // JS Template Literal
50 |
51 | // Arrow function - JS ES6
52 |
53 | // BaaS - Backend As a Service
54 |
55 | // GOAL
56 | // 1. Add data to database of firebase
57 | // 2. Show or Read data from database to the client side
58 |
--------------------------------------------------------------------------------
/06. Intro To Backend/Intro to Backend.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/06. Intro To Backend/Intro to Backend.pptx
--------------------------------------------------------------------------------
/07. PHP/Contact-Form/mailSetup.txt:
--------------------------------------------------------------------------------
1 | => Steps to Send Mail From Localhost XAMPP Using Gmail:
2 |
3 | 1. Open XAMPP Installation Directory.
4 | 2. Go to C:\xampp\php and open the php.ini file.
5 | 3. Find [mail function] in the file
6 | 4. Search and pass the following values:
7 |
8 | - SMTP=smtp.gmail.com
9 | smtp_port=587
10 | sendmail_from = YourGmailId@gmail.com
11 | sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
12 |
13 | 5. Now, go to C:\xampp\sendmail and open sendmail.ini file.
14 | 6. Find [sendmail] in the file
15 | 7. Search and pass the following values
16 | - smtp_server=smtp.gmail.com
17 | smtp_port=587
18 | error_logfile=error.log
19 | debug_logfile=debug.log
20 | auth_username=YourGmailId@gmail.com
21 | auth_password=Your-Gmail-Password
22 | force_sender=YourGmailId@gmail.com(optional)
23 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/0.Installation.txt:
--------------------------------------------------------------------------------
1 | Install XAMPP (EASIER TO GET STARTED)
2 | move to htdocs
3 | open localhost
4 |
5 | Chamge root user password privilages from xamp myphpadmin and
6 | then change the password in C:\xampp\phpMyAdmin\config.inc.php file.
7 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/1-hello.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Hello by PHP
";
6 | echo "
Hello by PHP ";
7 | ?>
8 |
9 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/10-function.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ";
23 | }
24 | familyName("Jani");
25 | familyName("Hege");
26 | familyName("Stale");
27 | familyName("Kai Jim");
28 | familyName("Borge");
29 | familyName(10000);
30 |
31 |
32 | echo "
";
33 |
34 |
35 | // return in function
36 | function multiplyNum($num1, $num2) {
37 | return $num1 * $num2 ;
38 | }
39 | echo multiplyNum(4, 5) . "
";
40 |
41 |
42 | // reference in functions
43 | $myNum = 1;
44 | function addNum(&$num) {
45 | $num += 2;
46 | }
47 | addNum($myNum);
48 |
49 | echo "Global value 'myNum' changed to: $myNum";
50 |
51 | ?>
52 |
53 |
54 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/11-array.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
";
10 |
11 | // method 2
12 | $people = ["John", "Ram", "Jennifer"];
13 | echo $people[2] . "
";
14 |
15 | //Add items
16 | $people[3] = "Sam";
17 | $people[] = "Shubham"; // by default add data to last
18 |
19 | // count
20 | echo count($people) . "
";
21 |
22 | // print the whole array
23 | print_r($people);
24 |
25 | echo "
";
26 |
27 | // print the whole array and also tell about data type of each value in the array
28 | // it dumbs the information of the variable
29 | var_dump($people);
30 |
31 | echo "
";
32 |
33 | // Assciative Array
34 | $person = ["Shubham" => 20, "John" => 20];
35 | $person["Ram"] = 18;
36 | var_dump($person);
37 |
38 | echo "
";
39 |
40 |
41 | // Multi-Dimensional Array
42 | $cars = array(
43 | array("Honda", 22, 11),
44 | array("Toyota", 22, 11),
45 | array("Swift", 22, 11)
46 | );
47 | echo $cars[1][0];
48 |
49 | ?>
50 |
51 |
52 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/12-sort.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ";
13 | }
14 | ?>
15 |
16 |
17 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/13-date.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | "; // day
10 | echo "Month is: " . date("m") . "
"; // month
11 | echo "Year is: " . date("Y") . "
"; // year
12 | echo "Day Of the week is " . date("l"). "
"; // Day Of th eeek
13 |
14 | // Combination od day month and year
15 | echo "Today is " . date("Y/m/d") . "
";
16 | echo "Today is " . date("Y.m.d") . "
";
17 | echo "Today is " . date("Y-m-d") . "
";
18 |
19 |
20 |
21 | // Time
22 | echo "
Time ". "
";
23 |
24 | // set time zone
25 | date_default_timezone_set("Asia/Kolkata");
26 |
27 | // get time zone
28 | echo "Time Zone: ". date_default_timezone_get() . "
";
29 |
30 | echo "Now Hour is " . date("h") . "
";
31 | echo "Now Minute is " . date("i") . "
";
32 | echo "Now Seconds is " . date("s") . "
";
33 | echo "AM/PM is " . date("a") . "
";
34 | // Full Time
35 | echo "Today is (date and time): " . date("h:i:sa") . "
";
36 |
37 |
38 |
39 | // Timestamp
40 | /* - It is a long integer containing number of seconds
41 | between the UNIX Epoch (January 1 1970 00:00:00 GMT)
42 | and the time specified
43 | */
44 | echo "
Timestamp ". "
";
45 | $timestamp = mktime(10, 30, 50, 11, 15, 2000);
46 | echo "Time in seconds: ". $timestamp. "
";
47 |
48 |
49 |
50 | // Date and time with timestamp
51 | echo "
Date with Time (by timestamp) ". "
";
52 | echo "My Date Of Birth: ". date("d/m/Y - h:i:s a", $timestamp)
53 |
54 |
55 | ?>
56 |
57 |
58 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/2-hellotag.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
My first PHP page
6 |
7 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/3-case.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
20 |
21 | ";
23 | echo "Hello World!
";
24 | EcHo "Hello World!
";
25 | ?>
26 |
27 |
28 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/4-var.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ";
19 |
20 |
21 | // float
22 | $float = 3.4;
23 | echo $float . "
";
24 |
25 |
26 | // boolean
27 | $bool = true;
28 | echo $bool. "
";
29 |
30 |
31 | // string
32 | $string1 = "Web Dev";
33 | $string2 = "Training";
34 |
35 | // concatenation of string
36 | $greet1 = $string1 . " " . $string2 . "
"; // method1
37 | $greet2 = "$string1 $string2
"; // method2 (use double string as it parse variables)
38 | echo $greet1;
39 | echo $greet2;
40 |
41 | // escape character
42 | $string3 = 'We\'r here' . "
";
43 | $string4 = "We'r here" . "
";
44 | echo $string3;
45 | echo $string4;
46 |
47 |
48 | // constant variable
49 | define('GREET', "Hello This is Constant variable!!");
50 | echo GREET;
51 |
52 | ?>
53 |
54 |
55 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/5-echo.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | " . $txt1 . "";
12 | echo "Study PHP at " . $txt2 . "
";
13 | echo $x + $y;
14 |
15 | print "
$x PHP is Fun! ";
16 | print "Hello world!
";
17 | print "I'm about to learn PHP!";
18 | ?>
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/6-string.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ";
8 |
9 | // no. of word in a string
10 | echo str_word_count("Hello world")."
";
11 |
12 | // reverse a string
13 | echo strrev("Hello world!");
14 | ?>
15 |
16 |
17 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/7-if-else.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
";
19 | }else echo '5 not passed' . "
";
20 |
21 |
22 | # nesting ifs
23 |
24 | $num = 4;
25 | if($num >= 5) {
26 | if($num < 10) {
27 | echo $num.' passed
';
28 | }
29 | echo 'pass 1
';
30 | }else {
31 | echo 'no pass
';
32 | };
33 |
34 |
35 | /* logical operators
36 | and &&
37 | or ||
38 | xor
39 | */
40 | $num = 6;
41 | if($num > 4 xor $num < 15) {
42 | echo $num.' passed';
43 | } else {
44 | echo $num. ' no pass';
45 | }
46 |
47 | ?>
48 |
49 |
50 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/8-switch-case.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/9-loop.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
";
19 | for ($x = 0; $x <= 10; $x++) {
20 | echo "The number is: $x
";
21 | }
22 |
23 |
24 | echo "
";
25 |
26 |
27 | # while loop
28 | # @params - condition
29 | echo "WHILE loop
";
30 | $i = 5;
31 | while($i < 10) {
32 | echo $i . "
";
33 | $i++;
34 | }
35 |
36 |
37 | echo "
";
38 |
39 |
40 | # do-while loop
41 | # @params - condition
42 | echo "Do.While loop
";
43 | $i = 1;
44 | do{
45 | echo $i . "
";
46 | $i++;
47 | }while($i < 10);
48 |
49 |
50 | echo "
";
51 |
52 |
53 | # foreach loop
54 | # @params - for arrays
55 | echo "Foreach loop
";
56 | $people = ["Shubham", "John", "William"];
57 | foreach ($people as $person) {
58 | # code...
59 | echo $person . "
";
60 | }
61 |
62 |
63 | echo "
";
64 |
65 |
66 | # @params - for associative arrays
67 | echo "Foreach loop in associative array
";
68 | $people = ["Shubham" => "sd@gmail.com", "John" => "john@gmaail.com", "William" => "will@gmail.com"];
69 | foreach ($people as $person => $email) {
70 | # code...
71 | echo $person . " : " . $email . "
";
72 | }
73 |
74 | echo "
";
75 |
76 | ?>
77 |
78 |
79 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/form-get-post/Cross-Site-ScriptingXSS.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Shubhamdutta2000/Web-Training/7089108e8d8231fb00dd2a7530f69dc87208360a/07. PHP/PHP Basics/form-get-post/Cross-Site-ScriptingXSS.png
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/form-get-post/form.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
get post
9 |
10 |
11 |
12 |
13 |
24 |
25 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/form-get-post/get_post.php:
--------------------------------------------------------------------------------
1 | GET REQUEST: " . "
";
26 | echo "Name: " . $name . "
";
27 | // echo "Email: " . $email ;
28 | };
29 |
30 |
31 | // POST REQUEST
32 | // if(isset($_POST["name"])){
33 | // $name = htmlentities($_POST['name']);
34 | // $email = htmlentities($_POST['email']);
35 | // echo "
POST REQUEST: " . "
";
36 | // echo "Name: " . $name . "
";
37 | // echo "Email: " . $email;
38 | // }
39 |
40 |
41 | // $_REQUEST works with either POST/GET request
42 | // if(isset($_REQUEST['name'])){
43 | // $name = htmlentities($_REQUEST['name']);
44 | // $email = htmlentities($_REQUEST['email']);
45 | // echo "
REQUEST: " . "
";
46 | // echo "Name: " . $name . "
";
47 | // echo "Email: " . $email ;
48 | // }
49 |
50 |
51 | // Query String (after ? in URL)
52 | echo "
" . $_SERVER['QUERY_STRING'] . "
";
53 |
54 | ?>
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/form-get-post/post.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Welcome
5 | Your email address is:
6 |
7 |
8 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/include and required/aboutUs.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/include and required/contactUs.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/07. PHP/PHP Basics/include and required/include/footer.php:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |