Code: Select all
<?php
$file = ($_FILES['thefile']['name']);
$file = str_replace("'", "", $file);
$file = stripslashes($file);
?>Code: Select all
<?php
stripslashes($_FILES['thefile']['name']);
$_FILES['thefile']['name'] = str_replace("'", "", $_FILES['thefile']['name']);
?>Code: Select all
<?php
stripslashes($_FILES['thefile']['tmp_name']);
$_FILES['thefile']['tmp_name'] = str_replace("'", "", $_FILES['thefile']['tmp_name']);
?>p.s im sure its clear that i have no idea what im doing when it comes to file upload handling