Jump to content

Archived

This topic is now archived and is closed to further replies.

Elusid

Comment code help

Recommended Posts

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 106
ERROR: 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]

Share this post


Link to post
Share on other sites
Perhaps you need to check the folder permissions....I would think that write permissions for the comments folder are required

Share this post


Link to post
Share on other sites
[color=green]comments[/color] = Folder is in the same level
[color=green]../comments[/color] = Folder is one level up

And so on...and so forth. Make sure you're defining the correct path...relative to where you are calling it from.

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.