PHP Classes

File: testUrlsFT.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   PHP URLs From Database   testUrlsFT.php   Download  
File: testUrlsFT.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP URLs From Database
Find MySQL database table records to extract URLs
Author: By
Last change:
Date: 6 years ago
Size: 1,099 bytes
 

Contents

Class file image Download
<?php
               
// ini_set("max_execution_time",9999);
               
set_time_limit(9999);
               
define("SERVERNAME","localhost");
               
define("USERNAME","root");
               
define("PASSWORD","");
                require_once(
'Urls_From_tables.class.php');
               
               
// $searchFromDatabase=array("sensei");
               
$object=new Urls_From_tables(
               
// $searchFromDatabase
               
); //Enter no parameter to search from the entire database
               
               
               
               
echo'<pre>';
                echo
'<h2>var_dump($object->OnlyUrls());</h2>'; var_dump($object->OnlyUrls());
                echo
'<h2>var_dump($object->get_just_urls());</h2>'; var_dump($object->get_just_urls());
                echo
'<h2>var_dump($object->get_justTrue_Exturls());</h2>'; var_dump($object->get_justTrue_Exturls());
                echo
'<h2>var_dump($object->get_nlinks());</h2>'; var_dump($object->get_nlinks());
               
// echo'<h2> var_dump($object->getBrokens()); for all urls and http status in array</h2>'; var_dump($object->getBrokens());
                // echo'<h2> var_dump($object->getBrokens(true)); for array of just brokens(probably) links</h2>'; var_dump($object->getBrokens(true));
               
echo'</pre>';