Failed to open a file in PHP

karthie

karthie

@karthie-UlD8ye Oct 25, 2024
Hi friends,

While trying to open a file, Im getting this error "failed to open stream: Permission denied" in php even i set 777 permission to file and php safe mode OFF, this happens in online host. Do you have any idea..

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • hardtarget

    hardtarget

    @hardtarget-oEknko Mar 5, 2010

    karthie
    Hi friends,

    While trying to open a file, Im getting this error "failed to open stream: Permission denied" in php even i set 777 permission to file and php safe mode OFF, this happens in online host. Do you have any idea..
    The uploads directory must have write permission for whatever user account the web server is running under,

    it seems you have provided 777 permission for the uploading via FTP, though it fails with permission denied error,

    Then you must need to contact the host company, to have the write permission for the root directory, This will fix permission deny problem, ofcourse i hope so...