AV1611 Posted March 5, 2006 Share Posted March 5, 2006 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 More sharing options...
trq Posted July 20, 2009 Share Posted July 20, 2009 Why don't you try removing all that error supression so you can see what the real errors are? Link to comment https://forums.phpfreaks.com/topic/4140-chmod-question/#findComment-878435 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.