Saturday, January 31, 2009

HTTP and Mail Functions

get_browser
Returns an object containing information about the user’s current browser or about the browser name if specified.
Format: $string = get_browser(“name”);
get_meta_tags
Creates an array, each element of which is a name attribute for any meta tags found in a file.
Format: $array_tags = get_meta_tags(“pathtofile”);
header --> Sends an HTTP header to the Web server.
Format: header(“HTTPformattedheader”);
mail --> Sends e-mail from a PHP script.
Format: $success = mail(“to”,”subj”,”message”,”headers”);
parse_url
Returns an array, each element of which is a part of the URL, such as host, path, port, user, and so on.
Format: $array_url = parse_url(“url”);
setcookie --> Creates a cookie.
Format:
setcookie(“name”,”value”,exp,”path”,”domain”,is_secure);

No comments:

Post a Comment