comparing files and updating
Want some script code
I have two directories (source and target). Source directory contains new files
I woulike to download source to target but if target contaains same files then overwrite if target doesnot contains fille then copy new file to target.
I am new to php. Please help
Re: comparing files and updating
Have a go at doing it yourself. Then post otherwise goto www.rentacoder.com ;)
Re: comparing files and updating
look at filemtime() to check when the file was last modified. As for reading the file look at fopen()
Most people are willing to help you if you get stuck but no one will write the script for you. A quick search of this fourm will give you some good tutorials to helping you get started with PHP.