AlternativeNick 0 Report post Posted June 17, 2006 im attempting to use a php hit counter, and i have everything uploaded and configured as the directions say, however it doesnt show up on the sitei have it on, and when i go directly to the page (counter.php) i get this error Warning: fopen(logs/.log): failed to open stream: Permission denied in /home/altscr/public_html/counter.php on line 66this is line 66$file = fopen($logfile,"w+") or die("Can't open/write the log file, please CHMOD logs folder to 777 (rwx-rwx-rwx)!"); Share this post Link to post Share on other sites
serverph 0 Report post Posted June 17, 2006 did your configuration include CHMOD of logs folder as directed? that is the error you get since your script is trying to write a log update (an increment in your hit count) BUT your access permission configuration does not allow it. you need to set CHMOD to 777 as required.check out this thread for CHMOD details:http://forums.xisto.com/index.php?sho=32102&hl=CHMODalso search the forums for other related topics on chmod. Share this post Link to post Share on other sites
rvalkass 5 Report post Posted June 18, 2006 To have it show up on the site you will need to actually include the hit counter file on the page. Wherever you want the hit counter to appear you will need to add this line: <?php include('counter.php'); ?>And remember then to save your web pages with the .PHP extension rather than .HTML or something, if you are not already doing so. Share this post Link to post Share on other sites
AlternativeNick 0 Report post Posted June 19, 2006 thank you very much, that post definately helped me out alot as i had absolutely no idea what CHMOD was anyways, its also helped me out with alot of other things now, because apparently, chmod is pretty important i appreciate the help both of you, and yeah, i was using a php include to incorporate the data... thanks Share this post Link to post Share on other sites
serverph 0 Report post Posted June 25, 2006 topic resolved. closed. Share this post Link to post Share on other sites