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] Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.