Home Answers Viewqa PHP PHP Question

 
 


MostAfa
PHP Question
0 Answer(s)      9 months ago
Posted in : PHP

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.

View Answers









Related Pages:
php question
php question  hi i am ramesh, i want to learn php. with wamp server is it good to learn the php.   Hi, Please read at PHP and WAMP Tutorial page. Thanks   Hi, Yes, you can use WAMP to learn PHP and web
php question
php question  hi thanks for responding deepak but i have a doubt which is the best wamp or lamp i wanted to continue with wamp, is it ok
PHP Question
PHP Question  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
PHP Question
PHP Question  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
PHP/HTML/AJAX Question
PHP/HTML/AJAX Question  I have a PHP/HTML program that sends a parm... it as a HTML var but I need it as a PHP $var. How do I get it to into a $var and where should the code to do it be (in the .js or as a html or PHP statement
jsp question?
jsp question?  see you all know about including file in a jsp... i want to know is... see i have 2 files one.jsp two.jsp in two.jsp i have below... that..? as in php there are functions like include("file.php"); //that will include file
why php is open source - PHP
why php is open source  i know it's silly question but i would like to know why php is open source
Return Array in PHP
Return Array in PHP  my question is how to return Array from PHP script
JAVASCRIPT insert Question -
JAVASCRIPT insert Question  It is easy to transmit information from HOST program (in my case PHP program) to JAVASCRIPT insert. How may I reverse this, passing YES/NO information from a CONFIRM BOX back to the PHP program
php oop functions
php oop functions  Just a quick question... php oop functions. can i call the main class function from an instantiated object of the child class
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area
Java/PHP Developer
Java/PHP Developer  Hi, can u help me with, question from a text file and answers from another text file with check box
Question
Question   When there is an exception in my program how java runtime system handles
question
question  dear sir/madam my question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned question...we have to compare each and every word
question
question  Dear sir i had some typing mistake at previous question so its my humble request to let me know the steps to start the tomcat6 under the tomcat directory
question - JSP-Interview Questions
counterpart to non-Java dynamic Web content technologies for example PHP, CGI
php,javascript,html
php,javascript,html  Hi, thank u for answered the previous question. one more question: when i register the student details, unique register number should be created and incresed automatically for every student based
question
question  Gud morning sir, I have asked u some question regarding jsp in saturaday for that i didnot find any answere in which u send me the some of the links.U have asked me the specify some details. There is a entity name
Question?
Question?  My question is how to: Add a menu bar to the program with a File menu. In the File menu, add a submenu (JMenuItem) called About. When the user clicks on the About menu item, display a JOptionPane message dialog
Java/PHP Developer
Java/PHP Developer  Hi, I have a textfile(notepad1.txt) with 1 question and another textfile(notepad2.txt) with answers(4 options like multiple choice),question is imported from first text file to jframe and 4 options with check

Ask Questions?

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.