📦 EqualifyEverything / Sample-Scanner

📄 index.php · 15 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15<?php
// Report Errors
ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);

// Add JSON header
header('Content-Type: application/json;');

// axe-core Web Service
$url = $_GET['url'];
exec('axe '.$url.' --chromedriver-path /usr/local/bin/chromedriver --chrome-options="no-sandbox" --stdout', $output, $retval);
foreach($output as $item){
  echo $item;
}
?>