The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fatal error - php write the output of file

Discussion in 'General Discussion' started by Markwaugh, Nov 27, 2003.

  1. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sydney, Australia
    Hello gusy,

    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.
     
  2. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sydney, Australia
    guys,

    any ideas ????
     
  3. jaybenoit

    jaybenoit Registered

    Joined:
    Sep 11, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Look at your directory permissions. Try to chmod the directory to 777 and run your script again.
     
  4. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sydney, Australia
    Jaybenoit,

    Thanks. That fixed my issue. :)
     
Loading...

Share This Page