Start

End

Group

AIM

MSN

Website URL

ICQ

Yahoo

Jabber

Skype

Location

Interests

Languages

BACKGROUND: It appears that there are few problems in web development that do not have multiple solutions. My problem is to decide which solution best suits my needs. I have a confirmation email that sends a name, hash, and email address via an HTTP REQUEST using the $_GET superglobal to a PHP file that matches the hash with an entry in a newsletter roster table. If the match succeeds the value of the status variable is changed from 0 to 1. Before the hash is sent to the roster table it is sanitized using the MySQLi real_escape_string( ) function.
Elsewhere on my website I use the PHP filter_var( ) function with parameter values that vary with the nature of the data being sent.
QUESTION ONE: In the above instance which PHP function would be more secure. And, why?
QUESTION TWO: In general which function is preferred? And, why?
Roddy

There is an issue I have with creating a filter for the correct domain and toplevel domain. For example google.com is correct and all the other not.
my code:
function my_funct($data2) { $data2 = preg_replace('#(http://www.|http:|https:|ftp://www.|https://www./|//|www.|htp:|htt:|htp:/|htt:/|)# ' , '', $data2); return $data2; }
but directories wil not be blocked
like www.google.com/directory/page/page2
is there a way to use preg_replace and put only domain and toplevel domain in it?
maybe it is possible to negate it, but he entire validation of pre_replace would be changed I assume.

I'm looking for a way to block input in a text field occuring more than 5 times. For example
aaaaaa
is wrong but:
A sentence having an input of a happening several times or even more is okay.
above sentence has 7 inputs and shouldnt be blocked.
What is the solution?

Just see and enjoy it.
http://jsfiddle.net/composite/6zr2q/embedded/result/
HOW TO:
just click anywhere to show or hide and enjoy aero effects.
BROWSERS:
Firefox (All versions exclude blur effects but looks good like windows 8.)
Chrome 19 and above.
Safari 6 and above (sorry windows safari users.).
Opera 15 and above (Only affect by webkit).
Sorry for IE users. IE All version include 11. I'm finding figure out for IE looks like Firefox.
TECH:
Effects by CSS3 Only. Javascript is just for toggle class. that's all.
transition used for show and hide animation.
transform used for show and hide effect.
filter:blur used for blurred window effect.

Ok so I'm using this API and whenever I use a method, it gives me more than I want. For example, one function gives me: array(3) { ["result"]=> string(7) "success" ["source"]=> string(14) "getPlayerLimit" ["success"]=> int(20)} when all i want is the number at the bottom by intHow do I make it so that it will only show that number?