Posted by nescio on 10/13/63 11:36
hello,
i have a script to copy/delete files from a directory.
this works fine for one problem.
it seems that there are two files in the directory that have no extention,
they end with a dot, like:
'jansen.' in stead of 'jansen.doc' or 'jansen.jpg';
i cannot copy/delete the files so i tried to rename them and then
copy/delete them.
but the function rename() gives an error message for the files ending with a
dot:
Warning: rename(200502171529578655. ,200502171529578655.doc): No such file
or directory in x/x/x/aanpassen_10.php on line 132
but the file exists (i have checked it with opendir() and readdir()).
how is this possible? is it because the file ends with a dot and is
therefore not recognized?
thanks
[Back to original message]
|