Click to See Complete Forum and Search --> : Newbie Question
Ghostproject
12-22-2002, 05:23 PM
Hey I am a complete perl newbie and I have a stupid question. I need the absolute address to a file called guestbook.html its in the /www directory. I tried using /www/guestbook.html as the absolute filename and about a hundred other things. Whenever I run the script for the guestbook, it either A.) Makes a new guestbook.html file in the cgi-bin, or B.) Doesn't do anything. Please help:confused:
jeffmott
12-22-2002, 06:10 PM
Makes a new guestbook.html file in the cgi-bin
Where is this in relation to the guestbook.html file you're trying to reference?
Are you certain they're asking the for server path or the URI?
Ghostproject
12-22-2002, 08:02 PM
Originally posted by jeffmott
Makes a new guestbook.html file in the cgi-bin
Where is this in relation to the guestbook.html file you're trying to reference?
Are you certain they're asking the for server path or the URI?
The guestbook.html is the output file. And its the server path. I already know the URL, it takes me there fine. There is just nothing on it. T.T
jeffmott
12-22-2002, 11:33 PM
Perhaps you should post that part of the script and the path where the script is currently at. Is guestbook.html is the same directory as the script?
AdamGundry
12-23-2002, 01:34 PM
Ask your web host for the server path to your www directory, then add whatever directory you need on top, for example: /some/long/path/www/guestbook.html.
The path may include your account name, or something else, depending on your host.
Adam
Ghostproject
12-23-2002, 06:16 PM
Originally posted by jeffmott
Perhaps you should post that part of the script and the path where the script is currently at. Is guestbook.html is the same directory as the script?
No. The guestbook file is in /www/ script is in cgi-bin. I tried making it view html files from the cgi-bin but is isn't working..