Hey everyone,
I am currently trying to copy a load of files from an old domain onto a new domain (so as to replace the website). All images are embedded in img tags to i'm using php to extract the img src then using php copy to copy them across. This works completely sporadically, when i run the code 9 times out of 10 it runs very slowly and copies all the files at a snails pace with no error messages, but all copied files are 0kb. However every so often it runs much more quickly (the whole script runs in less than a 30 seconds) and copies all files across correctly. This is with no change in the script at all. I would be so grateful if anyone could suggest any reason this might be happening as i am so confused. The old site is up and even if it wasn't then surely i'd get an error saying it couldn't find the source file?
I cannot for the life of me work out what might be going on and i have no idea what to try as it works sometimes and not others and there are no error messages!
Any help anyone can give would be massively appreciated as i'm completely stumped!
Thanks so much,
Dave