Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Markwaugh

    Markwaugh Well-Known Member

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

    any ideas ????
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jaybenoit

    jaybenoit Registered

    Joined:
    Sep 11, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    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:
    166
    Location:
    Sydney, Australia
    Jaybenoit,

    Thanks. That fixed my issue. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice