PHP Classes

File: exec.php

Recommend this page to a friend!
  Classes of Ujah Chigozie peter   PHP Email Crawler   exec.php   Download  
File: exec.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Email Crawler
Crawl Web site pages to extract email addresses
Author: By
Last change:
Date: 2 years ago
Size: 391 bytes
 

Contents

Class file image Download

<?php
define
("PHP_SHELL_EXECUTION_PATH", "path/to/php");
$crawOptions = array(
   
'target' => 'https://example.com',
   
'max' => 50,
);
$crawRequest = base64_encode(serialize($crawOptions));
$crawScript = __DIR__ . "/craw.php";
$crawLogs = __DIR__ . "/craw_logs.log";
shell_exec(PHP_SHELL_EXECUTION_PATH . " " . $crawScript . " " . $crawRequest ." 'alert' >> " . $crawLogs . " 2>&1");