1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23<?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/bin/google-chrome --chrome-options="no-sandbox" --stdout', $output, $retval ); foreach ($output as $item) { echo $item; } ?>