The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Other
> Development Articles
|
Page 5 -
Developing a User Personalization System with PHP and Cookies
Page 5 - Discuss Developing a User Personalization System with PHP and Cookies in the Development Articles forum on Dev Shed. Developing a User Personalization System with PHP and Cookies Development Articles forum discussing articles and tutorials located at http://www.devshed.com. See what our authors have created for your viewing pleasure.
|
|
 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 4th, 2000, 04:44 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
more xml news sites
I really appreciate you giving this code, but I am having trouble finding more xml-rdf files from news sources.
<br>
<br>
If anyone knows more news sites that offer xml-rdf files for individual use, please let me know (a link directly to the xml-rdf would greatly be appreciated).
<br>
<br>
THANKS!
|

February 5th, 2000, 10:04 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Warning Failed opening 'slashdot.Ink'
I've managed to get all aspects up and running smoothly with the exception of getting the headlines. I keep receiving the same statements for each headline chosen
"--------------------
Warning: Failed opening 'slashdot.lnk' for inclusion in /www/jazzpromo/index.php3 on line 18
---------------------"
It might be a simple oversight. I've copied all the files verbatim.
Anyway help would be appreciated.
Thanks!
jesse
|

February 6th, 2000, 03:06 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Expire time doesn't work
Hello,
My problem is when I set expire time in cookie, it doesn't work.
I can't read cookie.
If i don't set it, it work. I can read cookie.
<!-- Code -->
<p><pre><font color=#008000><xmp>
/* this is my code for set cookie*/
SetCookie ("PRE_REGIST_ID",$ID,time()+600);
/* this is my code for reading it */
print "$PRE_REGIST_ID";
</xmp></font></pre><p>
<!-- Code -->
Nothing i can see when i set expire time..
Why ???
Please help me ...
Thanks,
Thanyaluk.
|

February 7th, 2000, 05:14 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Warning Failed opening 'slashdot.Ink'
Check the path to the file, and check to make sure the file was created. Looking for those things will probably reveal the problem.
Good Luck!
|

February 7th, 2000, 05:22 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Expire time doesn't work
Make sure you are not trying to set the cookie and read it in the same script, it won't work. In fact, you may think you are reading it, and then deleting it after you read it, if you keep setting it with no expiration. Remember, cookies are sent by the client with a header request - it doesn't have a chance to send it until AFTER the server sets the cookie's value.
So, set the cookie with a proper expiration time, then read it from the next script - it should work.
|

February 18th, 2000, 03:38 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
password security
A problem with this is that when the initial registration or login takes place, the form sends the username and password variables in the URL. Thus the unencoded username and password will appear in your history or drop-down list. Does anyone have a workaround for this so that the username and password are not clearly visible to anyone using that browser on that system?
|

March 10th, 2000, 04:03 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: GOT-IT
can you send me a copy then please!
|

April 13th, 2000, 10:24 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: password security
Scott,
try to use method post in your form.
EW
|

April 18th, 2000, 10:15 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Retreiving Lost/Forgotten Password
This one isn't for this aritcal but some i ha edited and maked from a artical on www.thescripts.com.
Take a look, perhaps this one will help you :)...
sorry for a bad coding but i does the work :)
<!-- Code -->
<p><pre><font color=#008000><xmp>
<---lost.php3--->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> title</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<FORM METHOD=POST ACTION="pass.php3">
<TABLE>
<TR>
<TD><FONT FACE="ARIAL" SIZE="-1">User Name</FONT></TD>
<TD><INPUT TYPE="text" NAME="Name"></TD>
</TR>
<TR>
<TD COLSPAN=2><CENTER><INPUT TYPE="submit"
VALUE="Submit"></CENTER></TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
<---stop--->
<---pass.php3--->
<?php
function showheader ($title) {
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> <?php echo $title ?> </TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<CENTER>
<?php
}
function showfooter () {
?>
</CENTER>
</BODY>
</HTML>
<?php
}
mysql_connect("localhost", "user", "pass");
mysql_select_db("users");
$table = 'users';
if ($Name == $Name) {
$user = mysql_query("SELECT * FROM $table WHERE (Name='$Name')");
if (mysql_num_rows($user) > 0) {
showheader("Yes!");
?>
<?php
$result = mysql_query("SELECT * FROM $table WHERE (Name='$Name')");
$i = 0;
$email = mysql_result($result,$i,"Email");
$passwd = mysql_result($result,$i,"Password");
mail("$email", "Site Information", "Hello $Name,\n
Your password was requested from $REMOTE_ADDR.\n
Your Password: $passwd.", "From: Webmaster <webmaster@yoursite.com>");
echo ("Your password is sendt to your email for security reason :-)");
?>
<?php
showfooter();
}
else {
showheader("Unknown User");
?>
Unknown User
<?php
showfooter();
}
}
else {
showheader("Error!");
?>
Error!
<?php
showfooter();
}
?>
<---stop--->
</xmp></font></pre><p>
<!-- Code -->
|

April 20th, 2000, 11:56 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Logout?
Anyone know how I make a logout script?
<br>
<br>
|

April 23rd, 2000, 07:20 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Cookie for shoppingcart?
Does any one have the source code for a simple shopping cart? I need to write a cart project in java using servlets.
thanks in advance!!
|

April 23rd, 2000, 07:21 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Cookie for shoppingcart?
Does any one have the source code for a simple shopping cart? I need to write a cart project in java using servlets.
thanks in advance!!
euent@hotmail.com
|

April 24th, 2000, 02:13 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Problem with Cookie
My problem is in Spanish:
<br>
<br>
Estoy usando Setcookie
<br>
pero me manda el siguiente mensaje "
<br>
Warning: Oops, php3_SetCookie called after header has been sent in verificar on line 45 "
<br>
<br>
y no se como solucionarlo
<br>
<br>
May you ask me, thank you!!
|

May 22nd, 2000, 12:14 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Problem with Cookie
Ruben:
setcookie tiene que ser la primer instruccion que se envia al explorador, osea, no tiene que haber nada antes... ok?
|

June 5th, 2000, 12:40 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: password security
Guys,
even if you use POST message,
your password and username
can be easily stolen by those,
who can control HTTP packets.
This is not the way out :)
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|