July 14, 2009
Mysql throw error when there are special characters in query !, The characters like “`” etc are always a nuisance in sql queries. For this reason , it’s always a necessity to use mysql_real_escape_string() (www.php.net/mysql_real_escape_string) ! , On one hand it’s secure and make sure that the queries don’t die while executing. The syntax that [...]
Read the full article →
July 12, 2009
At times Php developers need to parse domain information from a given url , Usually a $_SERVER['REQUEST_URI'] , The php function www.php.net/parse_url is used to extract domain name, Variables from a url string, The list of information extracted (Return values) from parse url are:- scheme – e.g. http, https, etc. host:- the domain name( www.google.com) [...]
Read the full article →