Fatal error - php write the output of file

I'm attempting to write a short program that will copy graphic files on certain dates. I can do the logic and all but for some reason I can't seem to get the file writing down on the system.

can anyone tell me what I need to do to get the program to write the output file. It tells me I can't write to the directory (which I know exists) but even using a wrapped script it doesn't seem to want to work. Any ideas why not? (I want to change my logo on certain dates and would eventually run this script as a cron job.)

This is the output of my php file. I have this file in scgi-bin :

FATAL: File copy of '/home/mark/public_html/images/mark.gif' to '/home/mark/public_html/images/mark.gif.bak' failed. Destination directory is not writeable or does not exist.

any ideas would be highly appreciated .. Good day and Happy Thanksgiving.

Thanks,
Mark Waugh

Stop hovering to collapse...Click to collapse...Hover to expand...Click to expand...