Make a PHP file to check URL

Posted on Aug 23, 2020

We make a PHP file and save it with a name check_url.php

<?php
if(isset($_POST['submit_url']))
{
 $url = $_POST['url'];
 $url_headers = @get_headers($url);
 if(strpos($url_headers[0],'200'))
 {
  $exist = "URL Exist";
 }
 else 
 {
  $exist = "URL Does Not Exist";
 }
}
?>
guest
0 Comments
Inline Feedbacks
View all comments