File: demo/urlinfo.php

Recommend this page to a friend!
  Classes of Joćo Ribeiro  >  PHP URL Extractor  >  demo/urlinfo.php  >  Download  
File: demo/urlinfo.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP URL Extractor
Extract URLs of images and metadata from Web pages
Author: By
Last change: Changed folder stucture. Updated composer autoload to psr-4
Updated class namespace and created a composer.json file.
Date: 6 years ago
Size: 250 bytes
 

Contents

Class file image Download
<?php

require_once '../src/UrlExtractor/UrlExtractor.php';

if (isset(
$_POST['url']) && !empty($_POST['url'])) {
   
$urlExtractor = new \rollbackpt\UrlExtractor\UrlExtractor();
    echo
$urlExtractor->extractAll(htmlspecialchars($_POST['url']));
}

For more information send a message to info at phpclasses dot org.