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 =
> @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 Tutorials/Questions & Answers:
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... PHP and web programming.ADS_TO_REPLACE_2 PHP is used to develop small websites
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
Advertisements
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
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
Question
Question   When there is an exception in my program how java runtime system handles
question
question  Sir, could you please help me to write a php program to display the contents of html registration form in a php page but i need to verify the phone number is number or not and also verify the email is valid
php
php   what is php   PHP Tutorials
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
php
php  what is php
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
php
php using javasript  how to set timer in php using javasript
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
php
php  show the constructor overloading in php
PHP
PHP  How to work in drupal with PHP
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
PHP
PHP   hii, Define PHP?   Hello,ADS_TO_REPLACE_1 The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used
php
php  what is php   PHP is one of the most used open source server-side scripting language, which runs on almost all the platform. PHP... and Solaris. To know more about PHP, Visit Here
php
php  how to write a program in php to create pdf file
php
php  plz tell me code for PHP SQL Insert,delete,update,view is used to insert the record from HTML page to Mysql database using in single PHP form
php
php  retrieve data from mysql in php   Please visit the following links: http://www.roseindia.net/sql/mysql-table/mysql-php-select.shtml http://www.roseindia.net/sql/mysql-example/select-where.shtml
php
php  How to catch a image and link click counters using Ajax php can any one help me
php
php  how to set email remainder in php?can you help me pls
PHP
PHP  I want to create Calendar Event in PHP. Could u help me
PHP
PHP  How to check whether a username exists on a website using php and cURL and not MySQL
php
Write a simple PHP program that display the days of week as per the system date using switch case statement.  Write a simple PHP program that display the days of week as per the system date using switch case statement
PHP
PHP  I would love to do PHP project with the title of "Hospital Management System". I want to know how to make validation using jquery
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
php
can learn php mysql connectivity examples from the given link: PHP Mysql Connectivity
php
shortcut method in php like in javscript seletedIndex
php
php  im beginner to php. i faced problem with creating form and data stored into mysql <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <
php
php  im beginner to php. i faced problem with creating form and data stored into mysql <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <
Return Array in PHP
Return Array in PHP  my question is how to return Array from PHP script
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
PHP Property Management - PHP
PHP Property Management  PHP Property Management.. any idea
rotate image in php - PHP
rotate image in php   Function to rotate image in PHP
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
php means
php means  php means
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
PHP duplicate file - PHP
PHP duplicate file   i wanted to duplicate a PHP file resides in different directory on submission
PHP MVC Framework - PHP
PHP MVC Framework   Which is the best & latest PHP MVC Framework... and where can i download it. Thanks
php generate link - PHP
php generate link  How can i generate links in PHP for my photo gallery app
php text encoding - PHP
php text encoding  How to encode the text editor text in PHP...how can it be done
$_get php example - PHP
$_get php example  Explain the $_get method in php with a simple example. m a beginner
php a href
php a href  How to use php a href to pass the value in PHP
What's PHP ?
What's PHP ?  What's PHP

Ads