If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Genesis
Forum Index » Profile for Genesis » Messages posted by Genesis
Author Message
All file permissions are set properly. .cgi(.pl) to 755 and .txt to 666
No errors are displayed.

What is strange is that after doing a scan in admin, the files found are written to the log.txt but when clicking a download from the site, it doesn't write it to the log, although it does download properly.

ie: The count always stays at zero.
Hi
New to this board and have a problem.

Followed install instructions and uploaded script and .txt files and chmoded as per instructions.
I am able to log into admin and the scan function works fine.

When I click on a download, the count in log.txt stays at zero, although all the downloads from the scan function appear in the log. The daylog.txt and download_stats.txt are both blank.

Can any please tell me why the script wont write a count to the log but the admin part does.

Here is what I have edited. I have tried renaming script to .cgi but it does the same thing as .pl

# url to script
$cgiurl = "http://www.mysite/cgi-bin/dlcount/download.cgi";

# url to the image files without trailing "/"
$base_gif = "http://www.mysite/images/gif";

# administration password - should not contain '&','=' and "
$admin_pass = "********";

# file locking ($lock=0 for Win32!);
$lock = 1;

# check http referer 0=no 1=yes;
$check = 0;
@valid=('http://www.mysite);

# log files
$basedat = "/home/myuser/public_html/cgi-bin/dlcount/log.txt";
$daylog = "/home/myuser/public_html/cgi-bin/dlcount/daylog.txt";
$stats = "/home/myuser/public_html/cgi-bin/dlcount/download_stats.txt";

# base url to the downloads without trailing "/" (use for scanning)
$base_url = "http://www.mysite/files";

# path to the downloads from the server root! (use for scanning)
$base_dir = "/home/myuser/public_html/files";

$back_img = "http://www.mysite/images/gif"; # url of background image
 
Forum Index » Profile for Genesis » Messages posted by Genesis
Go to:   
Based on the open source JForum