Skip to content

Instantly share code, notes, and snippets.

View clementtalleu's full-sized avatar

Clément Talleu clementtalleu

View GitHub Profile
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()) {
<?php
$filePath = $argv[1];
main($filePath);
function main($path) {
$startTime = microtime(true);
$memoryBefore = memory_get_usage();