Jump to content

Archived

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

AV1611

CHMOD Question

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]

Share this post


Link to post
Share on other sites
Why don't you try removing all that error supression so you can see what the real errors are?

Share this post


Link to post
Share on other sites

×

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.