Gossamer Forum
Home : Products : DBMan : Customization :

Importing .... Upload Mod

Quote Reply
Importing .... Upload Mod
I am having a problem with a mod to the upload.cgi There was a thread that had a mod that would allow users to upload changes to the "default.db" file. I installed the change to the upload mod and now it gives me this error. The upload mod was working fine. The txt file is listed at http://www.jse.net/testsite/upload.cgi.txt I checked the chmod for the directories and set them to 777 each. Now what?


The directory you specified:


$SAVE_DIRECTORY = "/cgi-bin/dbman";

is invalid. This problem is caused by one of the three following reasons:
The directory doesn't exist. Make sure that this directory is a complete path name, not a URL or something similar. It should look similar to /home/username/public_html/uploads

The directory isn't writable. Make sure that this directory is writable by all users. At your UNIX command prompt, type chmod 777 /cgi-bin/dbman

The directory you specified isn't really a directory. Make sure that this is indeed a directory and not a file.

------------------
Sherwin Sales@jse.net
Quote Reply
Re: Importing .... Upload Mod In reply to
Fixed that problem but new error message: Errors:
Reason: Is a directory at /data1/hypermart.net/sherwingaddis/cgi-bin/dbman/upload.cgi line 297.
[Mon Sep 13 14:34:18 1999] [error] [client 209.218.153.156] Premature end of script headers: /

??????????????????

------------------
Sherwin Sales@jse.net
Quote Reply
Re: Importing .... Upload Mod In reply to
Hmm...Sounds like you are either missing the print "Content-type: text/html\n\n"; in one of the sub-routines.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Importing .... Upload Mod In reply to
Now, It points to an error in line 297 with reads:
open (DB, ">>$SAVE_DIRECTORY\/$db_file_name") or die("unable to open database: $db_file_name.\nReason: $!");

This is the only error message that I am gettin now. Carrol wrote this mod for another member. HELP?!

http://www.jse.net/testsite/upload.cgi.txt

------------------
Sherwin Sales@jse.net
Quote Reply
Re: Importing .... Upload Mod In reply to
Carol or that other user will have to assist you. Try contacting the user who is using the codes to see if they are able to help you.

Try changing the codes you wrote to read as follows:

Code:
open (DB, ">>$SAVE_DIRECTORY/$db_file_name") or die("unable to open database:
$db_file_name.\nReason: $!");

Try taking the backslash \ escape character out.

Sorry I cannot be more helpful.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us