CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
$basedir help



May 17, 2001, 3:24 PM

Post #1 of 2 (1333 views)
$basedir help Can't Post

# $basedir is the UNIX directory that contains your output file. Again,
# It should point to a directory only, not a file, and it SHOULD NOT
# contain a trailing slash "/"

# $basedir = "/usr/home/leif/public_html/conservatives/scripts";

***QUESTION - what does this example refer to?***
using cute ftp this cgi file shows as located in"/web/cgi-bin"
and the text file shows as located in "/web/cgi-bin"
I dont have /user/home/... directories? How do I get this to point to the text file i want to write to?...I am so confused....Help


May 17, 2001, 4:12 PM

Post #2 of 2 (1331 views)
Re: $basedir help [In reply to] Can't Post

$basedir refers to an *example* of a directory that contains a file to be opened. It will probably be different on your server.
If you're setting up a program, it sounds like the author is telling you that you need to assign the full path to your file, to $basedir, without the trailing slash, which will be added later in the program. You should be able to find the path by placing a script in the directory which outputs %ENV. You may even be able to use $ENV{'DOCUMENT_ROOT'}



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives