Revising Code

This commit is contained in:
Zepher Ashe 2023-03-04 11:53:43 +00:00
parent c6b1e6b339
commit 4874704be8
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<?php
class Crawller
class Crawler
{
private $con;

View file

@ -1,6 +1,6 @@
<?php
include("config.php");
include("classes/Crawller.php");
include("classes/Crawler.php");
include("classes/DomDocumentParser.php");
if(isset($_SESSION['loggedin']))
@ -241,9 +241,9 @@ function followLinks($url)
<?php
if (isset($_POST['url']))
{
$crawllerObj = new Crawller($con);
$crawlerObj = new Crawler($con);
$startUrl = $_POST['url'];
// $crawllerObj->followLinks($startUrl);
// $crawlerObj->followLinks($startUrl);
followLinks($startUrl);
}
?>