You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
405 B

9 months ago
<?php
// Définir l'URL du site à aspirer
$url = "http://www.example.com";
// Construire la commande wget
$command = "wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains example.com --no-parent ".$url;
// Exécuter la commande wget
$output = shell_exec($command);
// Afficher la sortie de la commande
echo "<pre>$output</pre>";
?>