"fopen" function doesn't work in llitespeed

Discussion in 'PHP' started by adib125, Apr 23, 2013.

  1. adib125

    adib125 New Member

    my php version is 5.3.20 and webhost control panel is Directadmin.
    my web server is litespeed 4.2.1.
    when we use fopen function in scripts it does'nt work.
    what is solution ??
    plz help me
  2. webizen

    webizen Well-Known Member

    check error log (i.e. /var/log/httpd/error_log) for any indication. you may paste code snippet here to help troubleshooting.
  3. adib125

    adib125 New Member

    error log

    2013-04-24 07:23:29.545 [NOTICE] [] [STDERR] PHP Warning: fopen(.ada.php): failed to open stream: Permission denied in /home/clipdooni/domains/domain.com/public_html/ntabs/addfile.php on line 15

    and 15th line in addfile.php is :
    "$create_file = fopen($file, "w+")"
  4. webizen

    webizen Well-Known Member

    check the directory permission. seem php user has no write permssion in ntabs folder.


Share This Page