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] Link to comment https://forums.phpfreaks.com/topic/22808-comment-code-help/ 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 Link to comment https://forums.phpfreaks.com/topic/22808-comment-code-help/#findComment-102780 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. Link to comment https://forums.phpfreaks.com/topic/22808-comment-code-help/#findComment-102781 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... Link to comment https://forums.phpfreaks.com/topic/22808-comment-code-help/#findComment-102783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.