Generally speaking (i.e. in every case I've encountered) /home/USERNAME/public_html corresponds to either http://www.example.com/~USERNAME/ or http://USERNAME.example.com/.
Thus you should not include "public_html" in your URL path. It is still a real directory on the filesystem so it should appear when referencing the filesystem path.
Inside the Perl script it is a filesystem path, but outside the Perl script (i.e. in any HTML your script outputs) then it is a URL path.
| [reply] |
Thanks again for the advice. All much appreciated
| [reply] |
Hi again,
Try looking at the configuration file for httpd. It's someplace like /etc/httpd/conf/httpd.conf I am by no means an expert at html/cgi (although I'm trying to learn!), but I know that httpd.conf is where things like Apache pathname configuration are handled. Basically, you can define which directory will be the starting point for a given URL pointing to your server. Note that the starting point may differ depending on whether you're executing a script (CGI) or simply fetching a file. So if you have /public_html configured as the "starting point", an URL which references your server will access files relative to the /public_html directory.
You may also want to read some of the Apache/http documention (try a Google for "configuring html", or something similar). Good luck!
@ARGV=split//,"/:L";
map{print substr crypt($_,ord pop),2,3}qw"PerlyouC READPIPE provides"
| [reply] |