Solved

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

Posted on 2002-07-29
3
234 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to dynamically set the form action using jQuery.

773 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