3.139.238.76 |    

Navigation

Google Advertisement

Diese Funktion prüft die Syntax einer WebAdresse. Dabei kann es sich um eine HTTP, HTTPS oder FTP Adresse handeln. Ist die Adresse richtig wird TRUE (bzw. 1), ist sie falsch wird FALSE (bzw. 0) zurück gegeben.

check_url
  1. sub check_url  {
  2.  
  3. # Syntax der WebAdresse checken (http:// - 1=True)...
  4. if ($_[0] =~ /^(f|ht)tp:\/\/.+\..+/) { return 1; } else { return 0; }
  5.  
  6. }
Parsed in 0.001 seconds at 186.81 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 3 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)