Log and Register users in a JSON file | PHP and JSON tutorial

  Рет қаралды 14,540

Digital Fox

Digital Fox

Күн бұрын

In this full stack tutorial we are going to put together a register and login application. But instead of registering the user in a database, we are going to put the username and password in a JSON file.
You can read the article on my website
digitalfox-tut...
You can buy me a coffee and get the whole source code in a zip file.
www.buymeacoff...
If you like my content you can hit the subscribe button.
Thank you guys.

Пікірлер: 47
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Sorry guys, i had to delete the video and upload it again, by doing so your comments were erased . Sorry.
@babygrandadplays
@babygrandadplays 2 жыл бұрын
I feel like this video should have way more views and you a lot more subscribers. This is top quality information. This is exactly what I've been looking for.
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Thank you
@S_R29
@S_R29 2 жыл бұрын
@Digital Fox, dont worry i copied all files from your website and got it all working thanks.
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Ok, that's good, you'r welcome.
@Miroslav-Sumper
@Miroslav-Sumper 2 жыл бұрын
You helped me to resolve my assignment, thank you very much!🤗
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
You're welcome 😊
@cookingwithirandokht1717
@cookingwithirandokht1717 Жыл бұрын
Hello, I'm wondering how I can do this project with Java.
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Hey, i can't help you with that, my knowledge of Java are not good enough, but of course you can create the same app with Java, you just have to study. Thanks for watching
@haley8850
@haley8850 2 жыл бұрын
Keep up! I love how you explain those and it makes more understandable :smug
@haley8850
@haley8850 2 жыл бұрын
IDE?
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Sublime text
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Thanks Haley
@payperme
@payperme 2 жыл бұрын
Great video, it gave me some ideas. by the way the web page explanation it's better than the video, excellent job.
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Thank you, i am glad you liked it.
@estherojo5707
@estherojo5707 Жыл бұрын
I have this error Cannot use object of type stdClass as array on the line if($user['username'] == $this->username){ could you please help?
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Hey, maybe there is a typo somewhere in your code. You can download the source code from my website and check it out. digitalfox-tutorials.com/tutorial.php?title=Register-and-login-application-with-php-and-json Please text back if the error persists.
@S_R29
@S_R29 2 жыл бұрын
Hi DigitalFox I managed to get my first error sorted which I had enquired about before. But in your tutorial about how to make a login system using PHP and JSON file. There is an error where I enter the username and password and it says both fields are required error. This is when trying to register. I even tried copying your source code and it still isn't working. This is the checkFieldValues function in register.class.php. I have also sent an enquiry on your page, just wanted to make sure you receive my question. My project has been driving me crazy
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Hey, i just downloaded the files from my website and tested the application. I didn't find any problem in the registration process, everything works fine. Did you changed something?
@S_R29
@S_R29 2 жыл бұрын
@@DigitalFox-tutorials the only thing I changed is the name of the json file from data.json to users.json
@S_R29
@S_R29 2 жыл бұрын
@@DigitalFox-tutorials also how did you test it? I ran it through a hosting website
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
That's ok, but did you changed the name also in the register class?
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
In my localhost server.
@zaifhossain8509
@zaifhossain8509 2 жыл бұрын
You are undoubtedly doing great for learners. Is there any way to contact with you? Maybe ask for some suggestions or giving feedback.
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Thank you. You can contact me through my website digitalfox-tutorials.com/
@kindyletutorials7197
@kindyletutorials7197 Жыл бұрын
1000000000000000000000000000 thanks.
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Thank you to
@shutterlife404
@shutterlife404 Жыл бұрын
Can I use html instead of php?
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
No, HTML is not a programming language. You have to use a server side language to write into files.
@ejvali
@ejvali 2 жыл бұрын
Is this secure? Or, do you have any security tips?
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Since we hash the password, yes it is kinda secure. But i prefer to use a database.
@ejvali
@ejvali 2 жыл бұрын
@@DigitalFox-tutorials Can I ask even not related: what database host do you use? Or what do you recommend me to use?
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
MySQL . But you have to install a localhost server like Xampp in order to use a database.
@mykedavon
@mykedavon 2 жыл бұрын
Cool and educating video but please how can I get access to all the codes 🙏🙏🙏🙏
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Hey, thank you. You can download the source code from my website: digitalfox-tutorials.com/tutorial.php?title=Register-and-login-application-with-php-and-json
@moinulhossain8173
@moinulhossain8173 2 жыл бұрын
Can you please provide me the source code, It will be very helpful to me.
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Hey, you can copy the code from my website digitalfox-tutorials.com/tutorial.php?title=Register-and-login-application-with-php-and-json
@siddhipevekar1633
@siddhipevekar1633 Жыл бұрын
Can you please share the code
@DigitalFox-tutorials
@DigitalFox-tutorials Жыл бұрын
Yes, you can download it from my website: digitalfox-tutorials.com/tutorial.php?title=Register-and-login-application-with-php-and-json
@siddhipevekar1633
@siddhipevekar1633 Жыл бұрын
@@DigitalFox-tutorials thank u so much
@siddhipevekar1633
@siddhipevekar1633 Жыл бұрын
Your video is really very much helpful
@kingsleysimeon4959
@kingsleysimeon4959 2 жыл бұрын
your site is not opening.
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
I don't know why !!
@kingsleysimeon4959
@kingsleysimeon4959 2 жыл бұрын
@@DigitalFox-tutorials Is there any other way I could reach you. I have issue creating demo accounts with JSON.
@DigitalFox-tutorials
@DigitalFox-tutorials 2 жыл бұрын
Download the brave web browser, and open a new window with tor. This will work. In which country are you?
@funwithalbi2425
@funwithalbi2425 2 жыл бұрын
since replit doesnt have mysql lol
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 63 МЛН
бабл ти гель для душа // Eva mash
01:00
EVA mash
Рет қаралды 8 МЛН
Creating a simple pagination using php and mysql
15:57
Digital Fox
Рет қаралды 27 М.
Signup and Login with PHP and MySQL
43:16
Dave Hollingworth
Рет қаралды 288 М.
Angular CRUD operation using JSON file | Read Json File | Angular project
37:02
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 86 М.
php vidéo 29 :  read json file / Lecture d'un fichier json
11:06
9rayti f click
Рет қаралды 2,3 М.
Python RAG Tutorial (with Local LLMs): AI For Your PDFs
21:33
pixegami
Рет қаралды 290 М.
How to call APIs from PHP: file_get_contents, cURL, Guzzle and SDKs
25:14
Dave Hollingworth
Рет қаралды 43 М.