2010-01-08, 06:00:08
(This post was last modified: 2010-01-08, 06:03:45 by martynas.barzda.)
Url disputing: well urls should only be alphanumerical only. since it uses that for slugs I would assume that.
Checking files: yes, its safer for different types of servers as well since the function basename works differently on most.
Username dispute: Its for me personally most sites do it anyway, lastfm, myspace, twitter, ect. It's not a security issue on the username, the seperation part with parenthesis is more secure coding at least.
The huge function its a great function that simplifies having thirty different alpha[name here] check functions into one. It can be used throughout the whole script to secure more things and probably is one of the best functions I've made. I implemented it into codeigniter, cake, symphony, it's universally a great function that should be fundamentally in the top ten of any php programmer.
Examples:
Its just a great function. Don't throw away the rest for one thing, they could be used for something else without having to create another function.
Checking files: yes, its safer for different types of servers as well since the function basename works differently on most.
Username dispute: Its for me personally most sites do it anyway, lastfm, myspace, twitter, ect. It's not a security issue on the username, the seperation part with parenthesis is more secure coding at least.
The huge function its a great function that simplifies having thirty different alpha[name here] check functions into one. It can be used throughout the whole script to secure more things and probably is one of the best functions I've made. I implemented it into codeigniter, cake, symphony, it's universally a great function that should be fundamentally in the top ten of any php programmer.
Examples:
Code:
if(!alpha($username)){ $error = "username must be alphanumeric"; }
if(!alpha($number, 'numeric')){ $error = $thats not a valid number, negative numbers do not apply."; }
Its just a great function. Don't throw away the rest for one thing, they could be used for something else without having to create another function.
http://nijikokun.com
random stuff. idk.
random stuff. idk.