BigPrism.com
Sitemap
Contact Us
Add Link
Home
Our Scripts
Online Tools
JavaScript Snippets
CGI Perl Snippets
Home
Saturday, 23 November 2024
Main Menu
Home
Our Scripts
Online Tools
JavaScript Snippets
CGI Perl Snippets
$referer = rawurlencode($_SERVER["HTTP_REFERER"]); $uagent = rawurlencode($_SERVER["HTTP_USER_AGENT"]); $aa = file_get_contents('http://www.bigprism.com/cgi-bin/add_your_link_to_our_site_for_free.cgi?referer='.$referer.'&s=check&ip='.$_SERVER["REMOTE_ADDR"].'&uagent='.$uagent); echo "$aa\r\n"; ?>
Latest Items
URL shortening service PinURL.com
RegExp to validate URL syntax
Get file size over HTTP
BigPrism Dynamic Countdown Timer
ClickBank Product Finder
Popular Items
Base64 Hex ASCII Encoder-Decoder
ClickBank Product Finder
BigPrism Dynamic Countdown Timer
BigPrism Typo Helper
RegExp to validate URL syntax
RegExp to validate URL syntax
This simple regular expression will check if URL has correct syntax.
sub validateUrl { my($strUrl) = shift; return $strUrl =~ m!(http:|https:|ftp:)//([A-z\d]+)\:([A-z\d]+)\@([A-z\d\-\.]+\.)+[A-z]!i || $strUrl =~ m!^(http:|https:|ftp:)//([A-z\d\-\.]+\.)+[A-z]!i || $strUrl=~ m!^(http:|https:|ftp:)//(\d){1,3}\.(\d){1,3}\.(\d){1,3}\.(\d){1,3}!i ? 1 : 0; } ### usage: $url = 'http://www.bigprism.com/our-scripts/bigprism-typo-helper.html'; $res = validateUrl($url); # If URL has valid syntax, $res will be set to 1, otherwise $res will be 0
Copyright © 2006 BigPrism.com All rights reserved.
|
Affiliates
|
ClickBank Directory
|