[SOLVED] upload problems
Posted: Sat Jan 08, 2005 6:40 pm
ok i started sayin somtin earlier in another post but i figured this will be easier for all parties. i have a file uploading thing but whenever i upload a file that has a ' character it turns it into a \ character. iv tried all of these and nothing has worked
but nothing takes the \ mark out of the file name. how do i do this?
p.s im sure its clear that i have no idea what im doing when it comes to file upload handling
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