Canreef Aquatics Bulletin Board  

Go Back   Canreef Aquatics Bulletin Board > Other > Lounge

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 08-21-2001, 09:43 PM
reefburnaby reefburnaby is offline
Member
 
Join Date: Aug 2001
Location: Burnaby, B.C.
Posts: 766
reefburnaby is on a distinguished road
Default CGI expert?

Hello,

Sorry about going over your head....

The code I posted is suppose to read the directory at $DATA_PATH.

so...
$d = new DirHandle $DATA_PATH
opens a handle, $d, that can be used to get the file names in the subdirectory $DATA_PATH.

if $d is not defined, then perl was not able
to open $DATA_PATH. Hence, returns "Bad Data Path". If the data path is good, then the next section of code will read the file names from the subdirectory $DATA_PATH into $_ and print it out. print "<BR>" is an HTML code that causes a line break.

I guess you are wondering where we should go from here. From what I can see, the path $DATA_PATH is not correct. So, we will try something else like :

$DATA_PATH = ".";

In theory, it should print out the directory of something -- this something should be what ever is in cgi-bin (not sure, but thats what mine does). Try mucking around with the $DATA_PATH until it works or you see something familiar.

Try

$DATA_PATH = "/" or "/userweb/titus"

I guess that problem is a bit more complicated that you had hoped...so we should take this offline since it is a pain try to explain it over a bulletin board. My name is Victor. So you can give me a call at home @ 420-8789 or at work at 415-6000-2033.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.