Skip to main content

Posts

Showing posts from August, 2018

How To Validate Email and Url In Php

Validate Email Address In Php $email = test($_POST["email"]); if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {   $emailError = "Invalid email format"; } Validate Url In Php $website = test($_POST["website"]); if (!preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i",$website)) {   $websiteError = "Invalid URL"; } thank you team gajabwap web in hindi

How to Create Meta Tag Generator Tool With Angular Js

Simple Meta Tag Generator Tool With Angular Js Demo- Meta Tag Generator With Angular Js <!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script> <body> <div ng-app=""> <p>Title: <input type="text" ng-model="title" placeholder="Enter name here"></p> <p>Description : <input type="text" ng-model="description" placeholder="Enter name here"></p> <p>Keywords : <input type="text" ng-model="keywords" placeholder="Enter name here"></p> <p>Author : <input type="text" ng-model="author" placeholder="Enter name here"></p> <p>Country : <input type="text" ng-model="country" placeholder="Enter name here"></p> <textarea> ...

How to Check Website Availability with PHP

Hello friends ajj me apko btaunga ki kis parkar ham check kar sakte hai ki website is available or not. Demo- check website is Available or Not <form action="" method="post"> Enter Website Url<input type="text" name="name"><br> <input type="submit" name="submit"/> </form> <?php error_reporting(0); function Siteexist($url){        // Initialize cURL     $curlInit = curl_init($url);       // Set options     curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10);     curl_setopt($curlInit,CURLOPT_HEADER,true);     curl_setopt($curlInit,CURLOPT_NOBODY,true);     curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);     // Get response     $response = curl_exec($curlInit);       // Close a c...