And if you want to forcefully expire a cookie (like when you log out) you set the expiry time to the past, to force the browser to clear it
virtual pets forum - Virtual pets news - Gaming discussion - General chat - Art marketplace
Thanks! Cleared a lot up. This time, I set up cookies correctly so now I don't have to sign in every time. :-)
I need to test the sign up and activation.
This guide tells me what to do to set up the php.ini file:
http://roshanbh.com.np/2007/12/sendi...vironment.html
But I am super confused. What does it mean when it says to use my ISP?![]()
I'm using a windows installation, I think. WAMP is the program.
What is easier?
Instead of using this to include characters, how do I make it so I can exclude the few characters? The goal is for the person to change the 'about me' but I don't want them to just stick to letters, spaces, commas and periods, so I think it would be silly to go through the keyboard and add all the other symbols..
Code:if(preg_replace( '/[^A-Z0-9,. !@#$%^&*()-_+=]/i', '', $about ) == $about)
If you just want to exclude a few characters, you could just use strtr() to substitute the characters you don't want for blank strings. You could also substitute them for html codes so the characters display on the page but don't interfere with the code.
My virtual pet site!
http://www.mystikpets.com/
Okay thanks!
I can't think of any characters that should be excluded except the apostrophes and quotes for mysql injection reasons so I just put in extra security using htmlspecialchars, mysql_real_escape_string and addslashes.
and of course adding stripslashes when reading back the table info.
I decided not to do either because there's no reason to limit a user's about me to certain characters. I use the three mysql injection precautions in my last post. :-)
Bookmarks