Travel & Events

baziriza
2 Views · 4 months ago

In this video we'll see:

INSTALL PHP JWT ERROR TO REST API

WHAT IS JWT ?
=====================
JWT stands for JSON Web Token and comprised of user encrypted information that can be used
to authenticate users and exchange information between clients and servers.

JWT tokens are simply encrypted user's information like identifier, username, email and
password.

Structure: Header.Payload.Signature


PHP-JWT Library
====================
php-jwt is a PHP library that allows you to encode and decode JSON Web Tokens (JWT) in
PHP, conforming to RFC 7519.

So, to Install this library we need,

PHP 7, Composer and MySQL database system installed on your development
environment.

$ sudo apt install composer

Installing php-jwt
==========================

1. To install the php-jwt library using Composer. In our terminal, run the following
command from the root of your project's directory:

$ composer require firebase/php-jwt

This will donwload the php-jwt library into a vendor folder.



2. How to include in PHP files

require "vendor/autoload.php";
use \Firebase\JWT\JWT;

POSTMAN CHORE EXTENSION TOOL LINK
https://chrome.google.com/webs....tore/detail/postman/

SOCIAL :
===============
Subscribe : https://www.youtube.com/owthub
FACEBOOK : https://www.facebook.com/owthub
TWITTER: https://twitter.com/owthub
BLOG: https://onlinewebtutorhub.blogspot.in/
UDEMY: https://www.udemy.com/user/online-web-tutor

Other Tutorials
===============
Wordpress Customizations:
---------------------------------
Wordpress Theme (Hindi): https://goo.gl/MZ8maF
Wordpress Widget (Hindi): https://goo.gl/Dc2htn
Wordpress Plugin (English): https://goo.gl/BA7dYG
Wordpress Theme Options (English): https://goo.gl/Vjv3Ub
Wordpress JSON Rest API (English): https://goo.gl/SVQRQR
Wordpress JSON Rest API (Hindi): https://goo.gl/NNWfKa
and many more...

Javascript framework:
----------------------------------
Learn backbone.js here! (English) : https://goo.gl/Qd2Pcs
Learn Vue JS here ! (Hindi): https://goo.gl/MVtsmh

PHP Frameworks:
----------------------------------
Laravel tutorial (Hindi): https://goo.gl/Nh9qJk
CakePHP tutorial (Hindi): https://goo.gl/uRsS3G

Tags:
----------------------------------
REST api development tutorial for beginners,
PHP api development tutorials for beginners,
API development in PHP,
PHP rest api development fro scratch,
api development tutorials in php
rest api development from scratch,
php apis development,
complete guide for developing rest apis in php,
REST apis beginners tutorials in php
step by step apis development in php for beginners,
online web tutor api development tutorials in php,
Learn PHP Rest API Development with JWT Token,
online web tutor sanjay,
online web tutor

Thanks
Online Web Tutor
Keep learning and Sharing :)

baziriza
2 Views · 4 months ago

Introduction To Data Types

Study Plan:
https://elzero.org/study/php-b....ootcamp-2022-study-p

Code & Notice:
https://elzero.org/category/courses/php-bootcamp/

Assignments:
https://elzero.org/category/as....signments/php-assign

=============================

Support Me on Patreon to Help me Create More Videos
https://www.patreon.com/OsamaElzero

I will be Very Happy if you Support my Channel.
http://elzero.org/support/

Join Our Facebook Group:
https://www.facebook.com/groups/ElzeroWebSchool/

Follow My Facebook Profile:
https://www.facebook.com/OsElzero

Like Facebook Page:
https://www.facebook.com/ElzeroWebSchool/

Follow Me On Twitter:
https://twitter.com/Osama_Elzero

baziriza
8 Views · 4 months ago

In this PHP tutorial you will learn how to create a login system in PHP from, and how to show content after being logged in. You will also learn about error handlers, and MySQL databases, which includes how to make a login form and a signup form. If you get any errors during this tutorial, make sure to check out my solutions at the very bottom of this description! :)

➤ LINKS

User Profile Page video (READ FIRST):

I decided that it would be better to create the Profile Page using Object Oriented PHP (OOP), instead of Procedural PHP. 🙂

OOP is MUCH better for creating BIG systems in PHP, and is more organized and considered the "proper way" of writing PHP.

I have a OOP Login System tutorial that I will link bellow, that I recommend you watch after this one. 🙂 And I will also link my OOP PHP course in case you are completely new to OOP PHP. 😉

Even though you can still follow along on the OOP Profile System video right after THIS Procedural Login System tutorial, I strongly recommend that you watch the OOP Login System first... Since it will be easier to follow along. 🙂

OOP PHP Course: https://www.youtube.com/watch?v=Anz0ArcQ5kI&list=PL0eyrZgxdwhypQiZnYXM7z7-OTkcMgGPh&ab_channel=DaniKrossing
OOP Login System tutorial: https://www.youtube.com/watch?v=BaEm2Qv14oU&ab_channel=DaniKrossing
OOP Profile Page tutorial: https://www.youtube.com/watch?v=SfE_bXFQmCU&ab_channel=DaniKrossing

Install XAMPP & a local server: https://www.youtube.com/watch?v=mXdpCRgR-xE
Regular expressions (search patterns): https://www.youtube.com/watch?v=In5NBIRfMrQ
PHP Password Recovery System: https://www.youtube.com/watch?v=wUkKCMEYj9M

➤ CHAPTERS

00:00:00 - Introduction
00:01:16 - How to get my lesson files
00:02:11 - What will you learn in this video?
00:02:48 - What security will we use?
00:03:41 - It's Procedural PHP, not OOP PHP
00:04:14 - If you get a error along the way...
00:04:48 - A demonstration of what we will make
00:08:20 - What YOU should have ready before we start!
00:12:52 - Creating our Header and Index pages
00:15:57 - Creating our Signup and Login pages
00:26:43 - Creating a connection to our database
00:33:16 - Creating our database
00:42:23 - Creating our Signup script
00:58:23 - Creating our Signup functions
00:58:23 - Testing our Signup system
01:24:46 - Creating Signup page error messages
01:26:47 - Creating our Login script
01:36:35 - Creating our Login functions
01:46:22 - Creating Login page error messages
01:47:47 - Changing our website when user is logged in
01:51:19- Testing our Login system
01:52:20 - Creating our Logout script
01:54:12 - Creating a welcome message when logged in
01:54:44 - Outro

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Material for this lesson: https://www.patreon.com/posts/....lesson-material-4236

➤ ERRORS YOU MIGHT RUN INTO!!!

▸"signup=empty"
Make sure you wrote "mysqli_connect" and NOT "mysql_connect" in the dbh.inc.php file!

▸"unexpected }"
If you get this error message:
Parse error: syntax error, unexpected '}'
Then it is because you forgot to close a ) or ; somewhere.

▸"unexpected ;"
If you get this error message:
Parse error: syntax error, unexpected ';'
Then it is because you forgot to close a } or ) somewhere. Probably because you made a mistake with your parenthesis near the "empty()" functions in your signup script.

▸"hashed pwd error"
If you get an error in the script when you hash the password, then it is because you decided not to follow my steps exactly in the video when I created the database table. Make sure you DON'T set the varchar() to a lower value! When you hash the password it will take up a lot of space in this column, and if you set a lower number then it won't fit!

▸"signup=success but database is empty?"
Here there might be a few reasons for your error. 1st is that you made a syntax/spelling mistake in your code. And yes you will claim that your code is identical to mine, but in 90% of the cases people claim this, I still find a syntax error in their code. So check your code for errors!
2nd reason is that MAMP seems to cause a lot of issues for people. Therefore try using XAMPP and make sure you write the same as me in the dbh.inc.php file.
3nd reason might be because you didn't follow the tutorial 100% when we set up the database at the beginning.

▸"HTTP ERROR 500"
HTTP ERROR 500 is a server error, meaning that you are most likely using an outdated version of apache or mysql. Try updating your servers and make sure that you are using the latest version of PHP.

baziriza
1 Views · 4 months ago

here's how to create a simple signup and login system using PHP for your website. to add some security, watch this video: https://www.youtube.com/watch?v=pIO0pmMTJ6Y
#PHP #MYSQL

Donate: https://paypal.me/quickcodechannel
Thank you :)

playlist:
0:00 - Intro
1:00 - Creating a database
3:50 - Creating website pages
5:30 - Index Page designing
8:30 - Login Page design
12:50 - Signup page design
14:00 - PHP coding begins
15:30 - Connect to the database
18:30 - Check login function
23:25 - Code for user signup
28:50 - User id creator function
31:30 - Test user signup
33:40 - Code for user login
37:28 - Test user login
38:28 - Add user welcome
39:28 - Code for user logout
41:00 - Final thoughts

source code:
https://drive.google.com/file/....d/15ZrwKt7D891-5V3tz

baziriza
3 Views · 4 months ago

How do you show database data on a website using PHP - PHP tutorial. Today we are going to learn how to get data from a database using PHP.

Regarding people asking why we are not using PDO:

In PHP there exists two methods of programming, which are
"Procedural programming (PP)" and "Object oriented programming (OOP)". In this PHP course we are using PP, and not OOP.

When using PP, it is possible to use MySQLi and Prepared statements. And when using OOP it is possible to use MySQLi, Prepared statements, and PDO. Therefore we cannot use PDO in these lessons here.

HOWEVER, in a few episodes I will show how to get and insert data into a database using prepared statements :)

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Material for this lesson: https://www.patreon.com/posts/....lesson-material-4236

baziriza
2 Views · 4 months ago

Learn what technologies you should learn first to become a back end web developer.
Watch the full learning back end learning path: https://www.youtube.com/playli....st?list=PLWKjhJtqVAb

✏️ This video was developed by @beau

baziriza
1 Views · 4 months ago

In this tutorial you will learn php variables tutorial in Hindi, Urdu.You can learn what is php variables in hindi and how to store any type of value in php variables.

PHP Tutorial in Hindi Playlist
https://www.youtube.com/playli....st?list=PL0b6OzIxLPb

Follow us on Facebook
https://www.facebook.com/yahooobaba/

Follow us on Twitter
https://twitter.com/YahoooBaba

#php #webdevelopment #webdesign

baziriza
3 Views · 4 months ago

Functions Using Regular Expressions | PHP Tutorial | Learn PHP Programming. In this PHP tutorial we will learn about regular expressions which are used to create search patterns. We can use regexp to check, find, and replace characters in a string.

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Material for this lesson: https://www.patreon.com/posts/....lesson-material-4236

baziriza
5 Views · 4 months ago

Join Free Training On How to Start Your Web Development Career in 90 Days?

Click Link below: 👇👇👇👇👇
https://codeeasyacademy.com/training


My GOAL is to create Best Web Development Tutorial on Youtube !

Join our Facebook group :- https://www.facebook.com/groups/362439687980553

Follow me on my personal social media accounts :-
Instagram :- https://www.instagram.com/rajdeepdhakad/
Facebook :- https://www.facebook.com/RajdeepDhakad
Snapchat :- @rajdeepdhakad

baziriza
1 Views · 4 months ago

Various Conditional Statements in PHP | PHP Tutorial | Learn PHP Programming | PHP for Beginners. In this PHP tutorial you will learn about if, else, and elseif statements. These statements are used to set specific conditions which needs to be met before certain PHP script is executed, or to decide which of multiple PHP scripts needs to be executed.
These statements are also used frequently when writing PHP code which makes them important to learn.

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful :)

Material for this lesson: https://www.patreon.com/posts/....lesson-material-4236




Showing 27 out of 28