OK, now we're getting somewhere. Is it unable to find the source file, the first file? I expect that's the case, since you're trying to create the destination file.
Are you checking that the file exists as the same user? That is, are you running the script from a prompt or is it a CGI or something run from cron?
The reason I'm asking is that the script is not able to see the file, while you are. The script isn't lying -- it really can't see the file. If you can see the file, then you must be looking at a different system or running with different privileges.
by stating the file location i have a new error "Argument "" isn't numeric in addition (+)".
with relation to the $number_replace variable?
i am running the script from a command line the directory and files are now chmod 777 (wromg i know) and the script is chmod a+x