Solved

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

Posted on 2002-07-29
3
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
This article will show, step by step, how to integrate R code into a R Sweave document
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

733 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