Elusid Posted October 2, 2006 Share Posted October 2, 2006 Ok so i recently found some code on this site http://tjw.org/discust/ that lets you have a comment system. I downloaded it, installed it on the server, and ran it... ok great then they said that you can change the defalt location to something out side your temp folder. Here is the code to inc it all together...[code]<?php session_start(); $_SESSION["DISCUST_USER"] = "testing"; require("discust.php"); $discust = new discust("/tmp/discust_test"); $discust->display(); ?>[/code]I did the same thing but replaced /tmp/discust_test with /comments/ and comments/ and /comments... none of them worked. I have the folder on the server. If I did the comments/ one it would let me get through all the form stuff but when I hit post I got this. "Warning: fopen(comments/): failed to open stream: Is a directory in /home/www/flamelicker.com/test/discust.php on line 106ERROR: could not write comments/" any ways here's what the whole code is...[url=http://tjw.org/discust/discust.phps]http://tjw.org/discust/discust.phps[/url] Quote Link to comment Share on other sites More sharing options...
realjumper Posted October 3, 2006 Share Posted October 3, 2006 Perhaps you need to check the folder permissions....I would think that write permissions for the comments folder are required Quote Link to comment Share on other sites More sharing options...
Caesar Posted October 3, 2006 Share Posted October 3, 2006 [color=green]comments[/color] = Folder is in the same level[color=green]../comments[/color] = Folder is one level upAnd so on...and so forth. Make sure you're defining the correct path...relative to where you are calling it from. Quote Link to comment Share on other sites More sharing options...
Elusid Posted October 3, 2006 Author Share Posted October 3, 2006 I changed the permissions to 777 and also then the comments/ should have worked because it was in the same folder as the file I was reading... 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.