Log in
يك شنبه,۱۶ بهمن ماه ۱۳۹۰مطابق با
١٣ ربيع الاول ۱۴۳۳هجرى قمرى

PHP Network
|
1- Is domain name taken 2- Get IP address 3- Port scan |
|
4- URL validation by Regular Expression
if (isset($_POST['posted'])) {
$url = $_POST['url'];
$theresults = ereg(“^[a-zA-Z0-9]+://[^ ]+$”, $url, $trashed);
if ($theresults) { $isamatch = “Valid”;
} else { $isamatch = “Invalid”; }
echo “URL validation says $url is ” . $isamatch;
}
5- DNS and host validation
$hostname = “www.yahoo.com”;
if (!isset($hostname)) {
die(“Hostname value wasn’t properly submitted. Retry.”);
}
if(empty($hostname)){
die(“Hostname field was left blank! Retry.”);
}
echo $hostname;
if(checkdnsrr($hostname)) {
echo “has a valid MX record!”;
} else { die(“does not exist”); }
Post your comment
Subpages
- Partition and Format
- Application in chroot
- Realplayer and IE
- SSL & Serverzertifikat
- Debian Package
- Solaris Package
- Linux commands
- Web service
- PHP
- PERL
Archives:
- Mercurial & hg view
- jPortal wordpress theme
- WordPress Careers plugin
- Check For Email pattern
- WordPress ODLinks Plugin
- WordPress Classifieds Plugin
- Clean up the Ubuntu
- Persian philosophs and sciences
- » LIVE-STREAM
- » Highlights of Iran's history
- » حاج آقا سيد عباس دوستانى
- » Aktuelle Angebote
- » Persian philosophs and sciences
- » Take a free course online.
- » Korea Live TVs
- » Spiele für Schulkinder
- » ایستگاه قطار دورتموند
- » Schule Übungsblätter
- » Learning French
- » Hosting & Service Provider
Categories:
Links
- (IE)HTML - اديتور به فارسي و لاتين
- Online Graphic Plotter
- Online scientific calculator
- تقويم ساليانه
- تبديل کُدهای رايج
- تبدیل تاریخ شمسی به میلادی
- فارسی نويس
- تبديل خط فينگليش به فارسى





