
I am trying to make php Readline where it reads from line 2 and loops to the end.
> if (isset($_POST['oldpass'])) {
>
> $username=readLine("/home/logins/".$_SERVER['REMOTE_ADDR'],
> 1); $handle =
> @fopen("/home/users/".$username.".txt",
> "r"); // Open file form read. if
> ($handle) { while (!feof($handle)) //
> Loop til end of file. {
> fclose($handle); // Close the file. }
> $password=readLine("/home/users/".$username.".txt",
> 1); if ($password==$_POST['oldpass'])
> { if
> ($_POST['newpass']==$_POST['repass'])
> {
> $file1=fopen("/home/users/".$username.".txt",
> "w"); fwrite($file1,
> $_POST['newpass']."\n");
> fwrite($file1, $handle);
> fclose($file1);
That is what I got so far. Please help. Thank you.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.