Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi paths 1

Status
Not open for further replies.

dihollis

Technical User
Jun 21, 2001
3
AU
I am trying to configure a script which allows online editing of a table. I am reasonably new to cgi and I don;t understand this line;
$CONFIG{data} = "/usr/home/public_html/path/to/datadirectory";
Have tried everything, have read the readme, also looked through tutorials but it doesn't make sense to me. My url is any suggestions or can I do it with Java
Thanks in advance
Di
 
What this means is there is a hash array (also known as an associative array) named CONFIG. One of its names in there is data and data's value is /usr/home/public_html/path/to/datadirectory.

A hash is a convienent way to store name value pairs. E.G., the name is data and its value is /usr/home/public_html/path/to/datadirectory.

To create that hash manually, you could do something like this:

%CONFIG = ( 'data' => '/usr/home/public_html/path/to/datadirectory');


Hope this helps.
-Vic vic cherubini
krs-one@cnunited.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash
====
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top