Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Can We Display Text In Form Of Wave As Shown In Gmail Forgot Password


https://www.google.com/accounts/Ren...aForPasswdReset , here characters are shown in wave nature.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
'Forgot Password'?
I have a system whereby users sign up. Now, say one user forgets their password. They click a link, enter their username, and their password is sent to their e-mail address. How is this done if you have, say, an md5 encrypted password in the database? Do I have to store un-encrypted passwords?

Forgot Password
I am thinking about designing a forgot password feature for my website, I  am using md5 encryption. Is there a way  of telling the user his orignal password or would i have to reset there password.

Forgot Password Reminder - MD5?
I've got a field for a password in my database which is encrypted using the MD5 when the password is first set, but i would like some kind of password reminder, or reset, although i am unsure how i could go about it. I am aware that MD5 encyption is a one way thing and cannot be decrypted, so i don't think i'll be able to work with a reminder, but some kind of password reset might work.

Forgot Admin Password To Website
I'be just created a new
website. i just logged into the site under my
admin default password and then changed the password and now when
trying to log back in it says my password is wrong. any ideas on how
to recover a password i just changed? Can I got and find it in mysql?


Forgot Password Session Error
i have a forgotpassword page and i am getting some errors which i can figure out how to solve. Code:

Does Yahoo, Gmail, Or Any Other Blocks Mail Coming From Feedback Form?
I've been testing my feedback form sent to my yahoo mail. It was working fine at first, but after receiving more than 10 emails then I can't seem to receive anymore. 

BTW, I tried testing two recipients separating them with comma. But when I check my email accounts, only 1 received the feedback. Is there anything wrong with the source codes?

$recipient = "dummy@yahoo.com, dummy2@yahoo.com";
$subject = "Subject here";
$mailheaders = "From: My Form <name@mail.com> ";
$mailheaders .= "Reply-To: " .$_POST["email"];

Thanks.

Read And Display Japanese Text From Text File
I posted a question regarding reading japanese
text from a text file.

Well, since I solved the problem, I thought I'd post my solution for
the benefit of other people with the same problem.

The plan was to make a script to read and display japanese text. I
will use it for making a japanese proverb script and for a japanese
language study script.

Method :

I wrote a simple kanji text file (saved with UTF-8 encoding)
I wrote a simple PHP script to display the file contents (saved with
UTF-8
encoding)
I specified the content-type header for the HTML page :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

*** All files have the same encoding. ***

UTF-8 supports japanese characters.

and it works!

this is my PHP (and HTML) script :

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>PHP : Japanese Text File Read : Exercise 1</title>
</head>
<body>

<?php

$filename="japanese.txt";
//open file
$fp = fopen($filename,'r');

//loop through each line in the file
while($line=fgets($fp))
{
//output current text file line
print $line."<br>";
}
//close file handle
fclose($fp);

?>

</body>
</html>

I know it's a very simple script, for testing purposes only. It
displays the contents of the japanese text file line by line.

The key was to save all files in the same encoding (I used UTF-8) and
to specify the encoding / charset in the HTML header (<meta
http-equiv="Content-Type" content="text/html; charset=utf-8">)

Easy PNG/WAVE CAPTCHA With PNG Canvas
Announcing SkimpyGimpy Support for PNG image
CAPTCHA generation and PNG canvases.

You can now use SkimpyGimpy to generate
CAPTCHA text representations as PNG image files
in addition to preformatted text ASCII art, and
WAVE format audio streams, either from command
lines or within Python programs.

Also general support for drawing text and
graphics as PNG image files is available via a
"PNG canvas" drawing interface.

Skimpy Main Page:
http://skimpygimpy.sourceforge.net/

PNG Canvas documentation:
http://skimpygimpy.sourceforge.net/canvas.html

Background Information:

Skimpy is a tool for generating HTML visual,
PNG visual, and WAVE audio representations for
strings which people can understand but which
web robots and other computer programs will
have difficulty understanding. Skimpy is an
example of a Captcha: an acronym for "Completely
Automated Public Turing test to tell Computers
and Humans Apart".

PhpBB2 - Clear Text Password In Config.php
Is there a way to avoid having the DB password (and/or ID for that matter)
clear in config.php?

Connecting To MySQL Without Storing Password In Clear Text
I have a website in a Linux/Apache shared hosting environment and have
been given access to the MySQL server running on the same machine. To
access this database from PHP, I have to call mysql_connect(host,
user, password) where the password is hardcoded into my PHP source
file in clear text.

I see two security problems with this:

1) Since the PHP source is in my public webserver area, another user
of the same server could telnet into the server and look at the source
file and see the password file. I can't lock the file down using Unix
file system permissions or else the webserver won't be able to read
it.

2) If my ISP messes up their webserver config and accidentally stops
parsing PHP files and outputs the PHP file as plain text, the password
will be visible to all.

Is there any other way for PHP to authenticate itself to MySQL?

Text File Display
I have a number of SQL reports that create standard 132 column text files. The user wishes to view these files in a browser in addition to their daily printing on a laser printer.

I can handle directory structure, etc with PHP but I would like to know what is the best way of displaying these text files on screen. We can select them but they are very plain. Is there a TXT2HTML ot TXT2XML type tool that can display headings, bolding, etc without too much difficulty. I would rather not reprogram the reports as there are hundreds of them, and embedding HTML would not be an answer as they need to be printed on a regular laser.

Using PHP To Display News Text
I downloaded a php script from hot scripts called Blue Boy Whats New. I really like what he's done on his site for displaying news items.

I got the admin part working and can add and edit news items. I can view the page created
bb_news.php3, but when I try to include the php3 file in my home page nothing shows up.

Japanese Text Display
I have Japanese data coming from a mySQL database. It's internal encoding is EUC-JP and it is outputted as SJIS. This actually works just fine. My question comes from the fact that once these changes were made, all the static Japanese text on the page is botched. The meta tag in the head is set to Shift_JIS(SJIS) and it worked before the change.

Any suggestions? I just can't see how the two match up... The encoding of the db info shouldn't affect the encoding of static info on the page should it? Especially when they are both output in the same encoding..

Display Html Text From DB
I've got a text box and basically the user types text in html format, I then use htmlspecialchars to convert special characters to HTML entities, fine not a problem I then store the text in a DB with the HTML entities in place.

However when I want to display the text from the DB it still has the HTML tags in place and would like to render the HTML so to speak, how do I implement this? Sounds straightforward but need some pointers.

How To Cut Text And Display It Plus The Remaining Texts
just wanna ask if there's a way I can limit the text length i wanna display and display the remaining text below...??

let's say here's my string:

$CallNum = $rows['CallNum'];

this contains : Q179:1546:554-abc

now i want to display this text like this:

Q179:
1546:
554-
abc

Display A Text File On A Web Page
I have a text file that I am trying to display on a web page. If I cat
or more the file it formats and displays fine. When it comes up in the
browser it seems to loose tabs and the format gets messed up. This is
how I display the file.

$show = file("./fields/combined/$cdp$store");
$arrayitems = sizeof($show);
$x=0;
while ($x < $arrayitems) {
print("$show[$x]
");
$x++;
}

If I edit the file it has ^M at the end of each line if it matters.
Does anyone have a better idea as to how to display it?

Display Text In Firebird BLOB
I have a Firebird 2.o Database. When I display the text content of a BLOB field, I get the following result.
{
tf1fbidisansiansicpg1252deff0{fonttbl{f0fswissfprq2fcharset0 Helvetica;}{f1fswissfprq2fcharset0 Calibri;}{f2fnil MS Sans Serif;}} {colortbl ;
ed0green0lue128;} viewkind4uc1pardltrparqclang1033f0fs22 DURBANVILLE CONGREGATIONpar DEDICATED 28TH NOVEMBER 1999par.

I use ibase_blob_echo to return a result. How can I get the result to display witout the rtf characters.

Keep Text In Text Boxes After Form Is Rewritten
I'm trying to make a form that does the following:

(1) the user answers a question by typing in a text box
(2) a response is then written below the form, saying whether the answer is right or wrong and, perhaps making a comment of some kind
(3) the user's answer remains visible in the original text box

I've managed to write some code that does the first two things, but despite many attempts and much searching for code examples, I've failed to find a way of getting the answer to reappear in the text box when the page is rewritten.

This is my code:

Storing Some Html Text In Database & Display Them
i have some text in HTML format ..i just want to store HTML text in database and retrive and display them as a HTML ...

How To Display Text On Browser After Forcing Download
how do i display text to my browser after i force a download? heres my working script:
Code:

$selected_file = "/home/user/somelogfile.log";
header("Content-Type: text/plain");
header("Content-Disposition: attachment; filename=" . $_SERVER[HTTP_HOST] . "_" . $selected_file);
header("Content-length: " . filesize($selected_file));
readfile("$selected_file");

what i want to do is display some text in my browser, but if i echo something after readfile(), it gets included in the download file, while i also cant echo before the download as headers need to be sent before any text .

Display MySQL Data In Text Field
I have my site set up and am now working on the admin side. I have a page that lets me search my users then its linked to another page so I can edit the information.

I am attempting to get the code to display in my forms text boxes and text areas for updating. My problem is that I can't figure out how to get the data into my form for editing. I have a few different things but can't seem to figure this out.

Only For Saved Password For The Form...
Probably simple. I have an index.php, which prompts for a password,
but it causes me some problems in windows..

when opening www.mypage.com/somewhere/ it offers to remember the
password - fine
then, when exipred, I jump to www.mypage.com/somewhere/index.php, and
it offers to do that again.

How can I attach the password to the form, not the address?

A meta to the page itselt is probably not good...

How Password Shows Up On A Form..
I have a form where users have to fill out their login and password info, how to i make the password field to show up with those asterisks instead of what the user typed?

MySQL Passwords Shown In Php Errors
I'm buiding a rather large database driven content site for a client (a bank that's why this is so important). As I've been tinkering and making some database calls I got wondering if php will ever get confused and output the script as the "text file and display your db info on someones screen? I remember php was installed wrong the first time and that's what it did.

Read All {{var}} Within A String To Be Shown To User
I'm stumped with this little task of obtaining {{var}} object/variables from within a message (or string), where a string may contain 5-10 different instances of a {{var2}} or {{var3}} etc.

I am looking to take all instances it can find, to be displayed dynamically for what a user can use for variable/objects within an online email application. If the string contained: $string = "Welcome {{user}}, thanks for joining {{site_name}}."

I would want the php code to read $string and for all the {{vars}} and then to be displayed dynamically like: {{user}} - {{site_name}} - etc So they know exactly what {{var}}'s are available to them while modifying content on that specific template.

What To Do If User Forgot To Log Out?
I have a question about handling special cases of session expiration.
In a project I'm working on, the users must log out or else their
profile will be left in an unusable state -- at least until the
administrator fixes it by hand.

What is the proper way of handling this? Is there a way to supply a
function that is called when a session times out? What if the browser
is closed?

Display Results From Text File In Multiple Pages
i use a string, eg "&&&" to mark pages in a text file. i use $count to count the above string. how can i display the contents of this file in multiple pages (by identifying the above string or any other method)?

Identify Url Written In Text Area And Display It Hyperlinked.
I am using html textarea control. user writes text in text area and i save it in database using php, then i display it where ever it is required. I want if user writes some url in the area like www.abc.com or http://www.abc.com , When i display this text as output this url must be shown there as hyperlink. by clicking over it user must be redirected to www.abc .com

Is there any html textarea control property that can do it, or i need to write some php or javascript code for it. If someone has php script for it please help. It is urgent.

Display Results From Text File In Multiple Pages
i use a string, eg "&&&" to mark pages in a text file. i use $count to count the above string. how can i display the contents of this file in multiple pages (by identifying the above string or any other method)?

Dynamicly Created Page, With Refereing Url Shown
I have loads of domain names but none have any hosting space associated. They are however all entered into my DNS, so when any of them are visited, the visitor ends up at the (unused) home page of my dns server.

I would like to put a php (or perl, or whatever else is suitable) page here so the visitor is shown a more freindly page.

So, for example, a "Welcome to domain.com, this page is under construction / for sale" type page is what I would want. So all I would need to do for each domain to have it's own page would be to enter the domains in to my DNS and the rest would be automatic.

Output Shown Only In Command Line And Not In Browser
I have the following code in a script
--------------------------------------------------------------------------------------------------------------------------------
foreach($serverlist as $sno=>$serverdata) {
$servername = $serverdata['name'];
if($servername) {

unset($outputstr, $outputarr);
$outputstr = exec("ssh -n ".$servername." 'fstat | wc -l'",
$outputarr);

echo
"
----------------------------------------------------------";
echo "
ssh -n ".$servername." 'fstat | wc -l' ";
echo "
servername = ".$servername;
echo "
outputstr = "; var_dump($outputstr);
echo "
outputarr = "; var_dump($outputarr);

}
}
--------------------------------------------------------------------------------------------------------------------------------

When executed from browser it displayed:

---------------------------------------------------------- ssh -n
192.168.0.155 'fstat | wc -l' servername = 192.168.0.155 outputstr =
string(0) "" outputarr = array(0) { }
---------------------------------------------------------- ssh -n
192.168.0.156 'fstat | wc -l' servername = 192.168.0.156 outputstr =
string(0) "" outputarr = array(0) { }
---------------------------------------------------------- ssh -n
192.168.0.159 'fstat | wc -l' servername = 192.168.0.159 outputstr =
string(0) "" outputarr = array(0) { }

--------------------------------------------------------------------------------------------------------------------------------

When executed from command line it displayed:

PHP Warning: Module 'ctype' already loaded in Unknown on line 0
PHP Warning: Module 'SimpleXML' already loaded in Unknown on line 0
PHP Warning: Module 'dom' already loaded in Unknown on line 0
PHP Warning: Module 'iconv' already loaded in Unknown on line 0
PHP Warning: Module 'pspell' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20041030-debug/ssh2.so' -
/usr/local/lib/php/20041030-debug/ssh2.so: unsupported file layout in
Unknown on line 0
PHP Warning: Module 'pcre' already loaded in Unknown on line 0
PHP Warning: Module 'xml' already loaded in Unknown on line 0
bash: fstat: command not found
Password:

How Do I Create A PHP And MySQL Change Password Form With MD5?
Summary:
I a beginner with PHP and I am creating a secure customer portal using php and MYSQL I am using logon scripts and storing passwords with MD5 encryption.

I am able to:
get the password to be stored into the database as MD5 and the user can log in sucessfully.

My problem:
Comes when I am trying to make a password reset form where I (the admin) can change the users password to a temporary password (cant figure out how to do this), then the user can logon with the temporary password and change the temporary password to a new one.(cant figure out how to do this either). The variable does hold the hash, but its not being updated in MySQL.

The Code:
I am trying to use the following command with no luck:
$query = "UPDATE user SET `password`='$newpassword' WHERE id='$id'";
$result = mysql_query($query);

Am I doing somthing wrong? I have tried many differnt version and ways to do this with none being sucessful.

Matching Form Password With MySQL Encrypted One
I'm trying to set up a really simple session-based login thing - I think I've got most of the basic concepts down but I'm running into difficulties with the password. I've set the password field in the MySQL DB as 'password' and so it is encrypting it.

how do I get the form on the login page to either decrypt the password from the DB - or encrypt the password being passed fro mthe form to match the one the DB has. PHP Code:

Login Form - Password Check Not Working
I have a Login Script, and it has been working fine, except I just realised its been missing one thing, a password check !!! (don't ask me how I missed that  ). I'm trying to put the password check in, but its just not working for me, even though the password put in is correct, here's my script:

Links Pointing On PHP Manual Not Shown In Error Messages
I have html_errors set On and it's visible that it's on because I get some parts
of the error messages bold. The problem is I can't get any links to point to the
PHP manual.
docref_root = "/php_manual/"
docref_ext = ".html"
are set but no links are appearing. By that I mean there are absolutely no <a>
tags or anything of that sort in my error outputs. I tried generating almost
every type of error but please if somebody could post a line or two of code that
produces some clickable error message on their box so that I can test it on my.
(send the output also, please)

if my script is:
<?php
$var1 = 'var1'
$var2 = 'var2'
?>
I get this output
<br />
<b>Parse error</b>: syntax error, unexpected T_VARIABLE in
<b>e:www estarray.php</b> on line <b>3</b><br />

shouldn't there be any links in that pointing to PHP manual in my php_manual
dir? :-(

-forgot- Storing Objects In A Session PHP 5.2.0
I have read the message boards in this group and others. I still have
not been able to pull my obect out of a session and use it. Here is how
I store it in a session:

<?
//Include the UserClass & RoleClass so that we can create a user
object.
require_once("UserClass.php");
require_once("RoleClass.php");

//This has to be the first line of code a file if sessions are used.
session_start();

//Create a new user object
$user = new User();
$user->setName($_SERVER['HTTP_OBLIX_GIVENNAME']);

$role = new Role();
$role->setSysName($xml->roles[$i]->systemName);
//Now add the role to the user object.
$user->addRole($role);

//Save the user object in the session
$_SESSION['user'] = $user;
?>

This is how I try to pull the object out:

<?
require_once("UserClass.php");
require_once("RoleClass.php");

session_start();

//Include the UserClass & RoleClass so that we can create a user
object.

//See if there is a user object in the session
if ( isset($_SESSION['user']) ){

//Get user object from session
$user = (User)$_SESSION['user'];
}

I have also just tried:
$user = $_SESSION['user'];

?>

I receive errors like these:
<b>Parse error</b>: syntax error, unexpected T_VARIABLE in
<b>/home/as411161/apache/htdocs/common/vcp_menu2.php</bon line
<b>14</b><br />

I also get this message:
<b>Warning</b>: session_start() [<a
href='function.session-start'>function.session-start</a>]: Node no
longer exists in
<b>/home/as411161/apache/htdocs/common/vcp_menu2.php</bon line
<b>5</b><br />

Forgot How To Do A Mass Update In MySQL
I can't remember if I did this last time in phpMyAdmin or if I did it some
other way... I have 2 new fields in a database that I need to fill with
values. One field needs to have the default "0" updated to "1" in every
field. The other one I want to insert a randomly generated password. The
password function is in a form for all subsequent record insertions, but I
want to populate the existing 1100 records with one also. What's the
easiest way to fill these 2 fields without wiping out my data?

Registration Form Checking The Two Password Boxes Are Matching
ive created a registration form that has various input text boxes including a "password" and a "verify password" one.

My issue is that when it comes to checking the two password boxes are matching.
At first i thought it was my syntax etc. but i've narrowed it down to the fact that my code isnt picking up the first password text box at all. Code:

Signup Form Displaying Wrong Passwords (PASSWORD HASH)
I recently created a signup form with a user password. The forms are working, however, when I retrieve the record in MySQL the passwords are jumbled numbers and letters -not the correct passwords.

I believe this is called password hash. Why is the hash generated? I created a few user accounts but I can't login as the password entered is not the same as the myslq password generated by the hash..??

How are users suppose to login? What if they lose their password...how do I send them their password if I have a 'password hash'?

Display Date In Form
I'm using Microsoft SQL database for my data store. here i got a problem to display date (modified data). the problem is when the user update the data in database manually not using form i don't know how to read it.

Display Form Only Once Per User Using Sessions
I'd like a form with four questions to appear on each page of my web site, but only once per page. At the moment, if someone visits a page twice they get a questionnaire about it again.

Is the a way to use PHP sessions to remember not to display the form if it has already been used?

Display Of " And ' From Form Submission
I have single and double quotes in the text field which is submitted on one page. When I display this on the next page I see ' and " in place of ' and " respectively.

Display Form Based On Keywords
I would like to have a field which a user will enter a keyword in the field and submit, upon submit, the script bring up a form based on the user's keyword. Is it possible to do that if so anyone can give me an example?

Function To Display Form From Database!
I'm trying to write a function which gets all the client names from a table and displays them in a drop down list. My function is displaying a form with nothing in! Code:

Display A Blank Page When Form Submit?
I keep getting a blank page when i submit my registration form, because there's no errors being display.

Checkboxes In A Form To Determine Whether To Display In Results
I am making an effort to put checkboxes in my form that will determine whether to display that column or not. This is my first time doing this with PHP and I am hoping you gurus can assist. I have gotten some extremely great assistance in the past, so I am looking forward to any recommendations.

currently my form is as follows:

Display Values Of The Form Inside The Table On The New Page
I am generating data from database and displaying it inside input text boxes (for users to make some changes). What I need to do is when user presses "submit" button display all of the results inside the table on the new opened page. How can I do it?

How To Display Html Form Selects (via Checkbox) In Email?
I have a simple form to collect user selections in html form. I am
pretty new to php...how can I send the user's checkbox selects to me
in an email...I am struggling with buiding an array to send this info...

Gmail Imap
I have tried every possible combination to get gmails imap working through php using imap open why cant I connect is anyone else having this problem? Code:


Copyright © 2005-08 www.BigResource.com, All rights reserved