This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
const exec = require('child_process').exec; | |
// Fonction pour scanner les fichiers PHP dans un dossier | |
function scanDirectory(directory) { | |
const files = fs.readdirSync(directory); | |
files.forEach(file => { | |
const fullPath = path.join(directory, file); | |
if (fs.lstatSync(fullPath).isDirectory()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$filePath = $argv[1]; | |
main($filePath); | |
function main($path) { | |
$startTime = microtime(true); | |
$memoryBefore = memory_get_usage(); |