Jump to content

wyrd33

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

wyrd33's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I think you misread my post. I'm not talking about chmod() the PHP command.
  2. I have that set in my code: ini_set("log_errors", 1); Any other ideas?
  3. I want to display debug information in my cpanel's log file (the default log file where all of my PHP errors display). However, error_log() doesn't seem to want to work. This is what I have: error_log("test", 0); Thoughts? Thanks.
  4. Okay, I have a script that creates files and writes to them in a specific folder. However, I have to chmod 777 the folder for it to work. This is insecure, obviously. The reason for this, using system("whoami"), returns "nobody". Thus, the script isn't executing under my username, it's executing from the web, which is nobody. I guess this is obvious and typical. What I'm looking for is a way to run the script as myself, so I do not have to insecurely chmod 777 the directory. I would like to keep it 755 and have a secure, safe web site (well, as safe as I can make it, anyway). How can I accomplish this? Will executing the script with a cronjob work? If I run system("whoami") from a cronjob will it show up as my username rather than "nobody"? I can't think of any other ways to get around this. I really, really don't want to chmod 777 a directory.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.