]Hello everybody
have a little problem here.
I wrote a little script to upload/download files to one specific folder on my host.
problem is : u can upload files with space in the filename, but then u can't download it, it will link to somethink like :
http://www.bla.com/upload/bo instead of
http://www.bla.com/upload/bo om.jpg
So I though that there may be a function replacing space with %20 or simple "_".
I tried to add
Code:
$file1=str_replace(" ","_",$file);
and then use code (after all checks for right extensions, file size limit etc)
Code:
@copy($file1, "$absolute_path/$file_name")
but it haven't helped...
I know it's really simple... but I can't hit it... :cross-eyed:
Can anyone help pls? Thanx!