Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
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 the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

762 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

20 Experts available now in Live!

Get 1:1 Help Now