SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Access to a Partition? "Permission Denied"!

    I have a linux server running WHM/cPanel and am trying to get a front end PHP script to read data from a partition. Is that possible?

    ex. Get /home/user/public_html/files.php to read what files and directories are in the /reports partition?

    I'm trying to use opendir() and am getting "Permission denied" errors?

    Any guidance would be greatly appreciated!

    Brandon

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It's possible if the script has permission. Give it permission.

    http://www.computerhope.com/unix/uchmod.htm


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •