What paths to server resources should I use in my CGI or Perl scripts? Print

  • 0

Here are the correct paths to the common server resources that CGI and PERL scripts often require:

Date: /bin/date 
Sendmail: /usr/lib/sendmail
Path to Perl interpreter: #!/usr/bin/perl
Serverpath: /home/username/public_html/cgi-bin
Root path: /home/username/ (puts you in the root of your account)
Domain directory: /home/username/public_html (puts you in your public_html directory)
Cgi-bin path: /home/username/public_html/cgi-bin/filename (puts you in your cgi-bin)


Was this answer helpful?

« Back