tangra logo
   
[ class tree: tangra_lib ] [ index: tangra_lib ] [ all elements ]
 

Procedural File: inet_functions.inc.php

Source Location: /misc/inet_functions.inc.php

Page Details

Contains various functions for working with internet related objects

Filesource:  Source Code for this file
Functions
is_valid_email  [line 42]

boolean is_valid_email( string $email  )

Checks if email given with $email is valid

Returns true if is valid email address, false otherwise

Parameters:
string   $email: 


[ Top ]
is_valid_email2  [line 53]

boolean is_valid_email2( string $email, [boolean $check_dns = false]  )

Heavyweight alternavive of is_valid_email. It is more standart compliant.

Parameters:
string   $email:  Email address
boolean   $check_dns:  If true this function will check also if domain is fully qualified and resolvable to a type A or type MX DNS address record


[ Top ]
is_valid_email_rfc2822  [line 114]

boolean is_valid_email_rfc2822( string $email  )

Email validation conforming RFC 2822.

This function is originaly created by Cal Henderson <cal@iamcal.com>. Light modification made to accomodate "John Smith <js@jstest.com>" format (as describerd in 2822). You can find the original at http://www.iamcal.com/publish/articles/php/parsing_email/

Parameters:
string   $email: 


[ Top ]
is_valid_ip  [line 21]

boolean is_valid_ip( string $ip  )

Checks if IP given with $ip is valid Returns true if is valid IP, false otherwise

Parameters:
string   $ip: 


[ Top ]
parse_http_accept_language  [line 297]

array parse_http_accept_language( string $str  )

Parses $str as it is $_SERVER['HTTP_ACCEPT_LANGUAGE']

Returns array with language codes (2 letter?) sorted by weight

Parameters:
string   $str: 


[ Top ]
sort_http_accept_languages  [line 335]

unknown sort_http_accept_languages( unknown_type $a, unknown_type $b  )

Internal function used to sort languages by weight.

Parameters:
unknown_type   $a: 
unknown_type   $b: 

API Tags:
See:  parse_http_accept_language()


[ Top ]