In my program i first make an ftp connection to a server, then check directory for txt files and i copy the files with ftp_fget to a local folder. The files need to be same named so i copy the file name like this:
$remotefile = "example.txt" then $localfile = $remotefile and fopen($localfile,w).
And it works fine but im scared that somethink would happen an fopen function would open the remote file to write cause the names are same. Could this happen?
Also i want to delete some file in local directory. I know it is done with ulink but the program dont delete any files only displays warnings that permission denied. So how can i delete files?