Reply to copy/rename/delete file problem

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация