Does any body know about how to fetch data from website using php? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does any body know about how to fetch data from website using php?

I want to learn how to fetch username & passwords from the website because i can not fetch it by myself so please help! share any code or zip file.

7th Aug 2018, 6:22 AM
Rahul sharma
Rahul sharma - avatar
9 Answers
+ 1
Yes, probably it is for user names, but not passwords, passwords should be stored in database in a hashed format, not plain readable text. This is also the reason why when user forget their password we send them a new generated password, because we can't tell them what their previous password was, because we store the passwords in a hashed format. If you own the site then you normally have access to its database, there's no need to fetch information from website, you go and access the information straight from the database : )
7th Aug 2018, 7:00 AM
Ipang
+ 1
so how can we send the username and password to the database through PHP
7th Aug 2018, 7:02 AM
Rahul sharma
Rahul sharma - avatar
+ 1
this information is very much for me thanks a lot.
7th Aug 2018, 7:03 AM
Rahul sharma
Rahul sharma - avatar
+ 1
could you please share any code by which one can send the username and password direct to the database by PHP if you have please share.
7th Aug 2018, 7:04 AM
Rahul sharma
Rahul sharma - avatar
+ 1
Sorry, I don't have a code for that, but if you visit this link below you can learn how to use PHP for accessing data. http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers If you are into learning, and you have a laptop/PC you can install XAMPP, it's a software package with Apache (web server) PHP, MariaDb (MySQL free version). With that software you have a local server in your computer, where you can play and experiment. https://www.apachefriends.org
7th Aug 2018, 7:12 AM
Ipang
+ 1
thanks programmers now I can resolve the problems
7th Aug 2018, 9:40 AM
Rahul sharma
Rahul sharma - avatar
0
User names & passwords are confidential information, it would be illegal to fetch other people's credentials without their consent.
7th Aug 2018, 6:36 AM
Ipang
0
but if website is mine then it is mandatory to know the people details
7th Aug 2018, 6:52 AM
Rahul sharma
Rahul sharma - avatar