Jump to content

Comment code help


Elusid

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]
Link to comment
https://forums.phpfreaks.com/topic/22808-comment-code-help/
Share on other sites

Archived

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

×
×
  • Create New...

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.