fopen errors and phpld directory script errors

Discussion in 'PHP' started by hhheng, Dec 18, 2007.

  1. #1
    My script was working fine until last Saturday, but it's suddenly not woking and shows the following errors:

    And the script for open and create a new file is:

    Also a directory run as a subdomain under it is unreachable the same time and shows the following errors:

    Can anybody tell me what caused these errors?
     
    hhheng, Dec 18, 2007 IP
  2. kishore415

    kishore415 Well-Known Member

    Messages:
    1,462
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    160
    #2
    have you changed any permissions on the directories?
     
    kishore415, Dec 18, 2007 IP
  3. wolfson

    wolfson Active Member

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #3
    Maybe someone has changed PHP ini. Try to make a php file with <? echo phpinfo(); ?>. Verify if fopen() function is activated.
     
    wolfson, Dec 21, 2007 IP
  4. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #4
    this is permission error... you just have to change it to "777" or writable to the directory.... "templates"

    hope it resolves your error... and as said by ::wolfson:: just check your fopen fucntion
     
    infogle, Dec 21, 2007 IP
  5. robibrk

    robibrk Well-Known Member

    Messages:
    1,115
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #5
    I have the same problem on www.directoryelite.com. The dir worked fine, but now this error, noone changed anything.
     
    robibrk, Jan 23, 2008 IP