Jump to content

CHMOD Question


AV1611

Recommended Posts

Must move my server to WEBHOSTFREAKS... they are LAMPS... I'm a Windows guy...
I need to fix this script:
[code]
$filesize=filesize($settings['logfile']);
$fp = @fopen($settings['logfile'],"rb") or problem("Can't open the log file ($settings[logfile]) for reading! CHMOD this file to 666 (rw-rw-rw)!");
$content=@fread($fp,$filesize);
fclose($fp);
[/code]

I get the CHMOD error... How do I do what it's asking? In the script? Where?

I understand what it wants, I just don't have a clue how to do it...

Edit:
I Tried this, but it didn't make a difference...
[code]
$filesize=filesize($settings['logfile']);
chmod($settings['logfile'], 0666);
$fp = @fopen($settings['logfile'],"rb") or problem("Can't open the log file ($settings[logfile]) for reading! CHMOD this file to 666 (rw-rw-rw)!");
$content=@fread($fp,$filesize);
fclose($fp);
[/code]
Link to comment
https://forums.phpfreaks.com/topic/4140-chmod-question/
Share on other sites

  • 3 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.