Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP PHP Question

Have Programming Question? Ask it here!
 
 
 


MostAfa
PHP Question
0 Answer(s)      2 years 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.


Advertisement
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 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
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  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
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   what is php   PHP Tutorials
php
php  what is php
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
php
php  how to write a program in php to create pdf file
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   hii, Define PHP?   Hello, The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web
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  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  How to check whether a username exists on a website using php and cURL and not MySQL
PHP
PHP  I want to create Calendar Event in PHP. Could u help me
php
php  how to set email remainder in php?can you help me pls
php
php  How to catch a image and link click counters using Ajax php can any one help me
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> <
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
Return Array in PHP
Return Array in PHP  my question is how to return Array from PHP script
Question on pooling
Question on pooling  which server supports pooling?Application server or web server
question for c++
question for c++   write Program to swap between two numbers if first number is greater than second number and total of two numbers greater than 10
C# question
Create a Solution by name Bank with Classes Account.cs, SavingsAccount.cs and savingsTest.cs to Demonstrate Abstract Classes in C#  1st question : Create a Solution by name Bank with Classes Account.cs, SavingsAccount.cs
Question on javascript
Question on javascript  This is not exactly what i wanted....If i enter in 2nd combobox as name of child then it should show child id in 1st combobox automatically and vice versa
This question in Jmeter
This question in Jmeter  hi..i want to send request(xml) 100 times but each time in request xml one element needs to change, otherwise request will be failed since its duplicate
Inheritance question?
Inheritance question?  Q3)Create a class hierarchy as Company extended by AccountsDepartment. AccountsDepartment extended by AccountsReceivable... as AccountsPayable. please send the code of this question soon....plzzzzzzzz  
Inheritance question?
Inheritance question?  Q3)Create a class hierarchy as Company extended by AccountsDepartment. AccountsDepartment extended by AccountsReceivable... as AccountsPayable. please send the code of this question soon....plzzzzzzzz View
Question in Eclipse
Question in Eclipse   ** Hello EveryOne , L Have Question in Eclipse ?!! Question is : A.( The square class) Design a class named Square that contains : 1.A private instance variable side of type double 2.A no-argument
Question in Eclipse ??
Question in Eclipse ??  ** Hello EveryOne , L Have Question in Eclipse ?!! Question is : A.( The square class) Design a class named Square that contains : 1.A private instance variable side of type double 2.A no-argument
jsp question
jsp question   sir plz tell me how can I create a page which is similar to feedback form in which if one option is empty then other option is inaccessible. for example it consists of name address etc. if name field is not filled
Question in Java ??
Question in Java ??   Welcome every One ,I have Q in Java : Write aprogram that print the falewing table using SQRT method in the Math Class? Number squrfoot
Question in Java ??
Question in Java ??  Welcome every One ,I have Q in Java : Write aprogram that print the falewing table using SQRT method in the Math Class? Number 0 ,2, . . . ,18,20 squrfoot 00000 1.4142 5.2426 5.4721
jsp question..
jsp question..  what should do in deployment descriptor after adding jstl jar files.. I am the the following message in console screen; The absolute cannot be resolved in either web.xml or the jar files deployed
 

 

 

DMCA.com