fopen(.html) [function.fopen]: failed to open stream: Permission denied in /home/olic

Discussion in 'PHP' started by eleyas1, Feb 1, 2008.

  1. #1
    Hai,
    I want open a file and write the some contents from other file.i done it localhost.But when i upload in the server i am getting "Warning: fopen(.html) [function.fopen]: failed to open stream: Permission denied in /home/olicgin/public_html/file/file.php on line 5
    can't open file" error.Can anyone help me pls..its very urgent
     
    eleyas1, Feb 1, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Did you check the permissions of the .html file and the folder it resides it (should be set to 0777).

    Jay
     
    jayshah, Feb 1, 2008 IP
  3. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #3
    Check you are allowed to use fopen some hosts disable it.
     
    HuggyStudios, Feb 1, 2008 IP
  4. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #4
    It's trying to find a file called ".html" - I doubt it exists (definitely shouldn't under Windows), ensure you are opening the correct file.
     
    Danltn, Feb 2, 2008 IP
  5. archgames.net

    archgames.net Well-Known Member

    Messages:
    532
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    120
    #5
    you should set the permission to 777 of the .html file
     
    archgames.net, Feb 2, 2008 IP