Hacking in php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 9

Hacking in php

Hi..How to hack name.txt(file) using php any one idea about that

14th Jul 2017, 1:39 PM
Vinay
Vinay - avatar
10 Answers
+ 4
Here is a code to help you understand fopen, it's a view counter (you have to create a file.txt before, with the number 0) https://code.sololearn.com/waXXnkTPHfPE/#php
14th Jul 2017, 2:36 PM
mexikodro thanksgiving samples 1/1
mexikodro thanksgiving samples 1/1 - avatar
+ 4
If I understand what you're saying, there is a file that you want to hack into using PHP, and I'm assuming it's on the client's computer since you already have fully access to the server files. If that's correct, then you know why you got downvoted and everyone ignored you. If I misunderstood, then please rephrase and elaborate upon your question, we'll be more than happy to help.
14th Jul 2017, 2:20 PM
AgentSmith
+ 2
i cant understand the question.
14th Jul 2017, 2:19 PM
Gokul Nagarajan
Gokul Nagarajan - avatar
+ 2
Okay. That makes a bit more sense now. lol There is a big difference between wanting to hack something and simply trying to open a file on your server to obtain or store data. :D As Justelisha said, use the fopen() method to get you stared. Read through all of the file I/O stuff for PHP and it'll help you get a better grasp on how to utilize it.
14th Jul 2017, 2:32 PM
AgentSmith
+ 1
what the hell are you trying to say?
14th Jul 2017, 2:13 PM
mexikodro thanksgiving samples 1/1
mexikodro thanksgiving samples 1/1 - avatar
+ 1
Oh, ok I understand. Use fopen() http://php.net/manual/en/function.fopen.php
14th Jul 2017, 2:27 PM
mexikodro thanksgiving samples 1/1
mexikodro thanksgiving samples 1/1 - avatar
0
i think you can't understand waht i will say, am right.
14th Jul 2017, 2:15 PM
Vinay
Vinay - avatar
0
how can get stored information name.txt file using php
14th Jul 2017, 2:20 PM
Vinay
Vinay - avatar
0
Thank you @justelisha keep updating more information regarding my qustion.
14th Jul 2017, 2:24 PM
Vinay
Vinay - avatar
0
Thanks @Netkos Ent bro
14th Jul 2017, 3:02 PM
Vinay
Vinay - avatar