Jump to content


Photo

CHMOD Question


  • Please log in to reply
1 reply to this topic

#1 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 05 March 2006 - 01:43 PM

Must move my server to WEBHOSTFREAKS... they are LAMPS... I'm a Windows guy...
I need to fix this script:
$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);

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...
$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);


#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 20 July 2009 - 06:38 AM

Why don't you try removing all that error supression so you can see what the real errors are?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users