This file contains hidden or 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 | |
// Check that we have a file | |
if((!empty($_FILES["file"])) && ($_FILES['file']['error'] == 0)) | |
{ | |
// Set some variables | |
$inputFile = $_FILES['file']['tmp_name']; | |
$outputFile = 'cleaned_'.$_FILES['file']['name']; | |
$nodesToStrip = $_POST['elements']; // array of child nodes to strip (hr|cad) | |