Solved

very SIMPLE " $data_dir " question ... but... I'M GIVIN' AWAY POINTS ANYWAY!!!

Posted on 2002-07-29
3
229 Views
Last Modified: 2013-12-25
I'm setting up a simple midmart message board...

here is the path from the server where the freakin' data files are stored... but for the LIFE of me, I can't figure out how to type the $Data Dir line !! (GRRR)

OK... here's the question... (in plainer English...lol)

(I'm using ficticious folder names so don't actually try to navigate to the urls...lol)

1. This is what the script wants me to customize...

"  # Defines the path to the directory on the server that should be used # as the folder to save data files. No trailing slash.
$DATA_DIR = "/home/midmart/web/msgboard";

2.  If this were the folder where the data files will be kept on the server...

/D/Wholesale/richschool.com/htdocs/class/music/DragonFolder/Parent

3. the URL to that folder would be
http://www.richschool.com/class/music/Dragonfolder/Parent

4.  I've tried the following combinations...

$DATA_DIR = "/D/Wholesale/richschool.com/htdocs/class/music/DragonFolder/Parent";
$DATA_DIR = "/class/music/Dragonfolder/Parent";
$DATA_DIR = "/music/Dragonfolder/Parent";

The message board will NOT post whatever message you submit.  It goes through the Post.cgi file fine and then takes you to a screen with two links:

-- Return to Main Menu (view.cgi)
-- Post another message (post.cgi)

But.. when you click "Return to Main Menu" you go back to a bulletin board, BUT NO message has been posted.

I hope this is understandable...

AGAIN.. the question is..

What do I plug into this line...
 
DATA_DIR = "/home/midmart/web/msgboard";

that will get my new message board script to actually find and write to the data files?

0
Comment
Question by:gugis
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
pagemastah earned 500 total points
ID: 7185914
try these options based on the paths you posted:

$DATA_DIR = "$ENV{'DOCUMENT_ROOT'}/D/Wholesale/richschool.com/htdocs/class/music/DragonFolder/Parent";

or

$DATA_DIR = "$ENV{'DOCUMENT_ROOT'}/class/music/Dragonfolder/Parent";

or

$DATA_DIR = "$ENV{'DOCUMENT_ROOT'}/music/Dragonfolder/Parent";


the logic here is by including the $ENV{'DOCUMENT_ROOT'} plus the existing path of your data files.

in this case, for example, if your data directory is located at http://www.blah.com/cgi-bin/msgboard/data/ then your 'existing path' would be /cgi-bin/msgboard/data/.

hope that helps! :)
0
 
LVL 1

Author Comment

by:gugis
ID: 7185997
Whoop.. THERE IT IS !!

Thanks-a-mill :)
0
 
LVL 1

Expert Comment

by:pagemastah
ID: 7187733
anytime, gugis! :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with my python script 6 154
how to change the file name and add alert 16 57
Powershell scripts to log lock and unlock computer for the user 4 130
User profile Size Report 3 63
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now