in reply to Re: where art thou file?
in thread where art thou file?

hi, thanks for your reply.
/home/me etc refers to the local directory system on the server. I'm utterly confused by the public_html concept to be honest, because apaprently you are not supposed to include that in your path.
On my server ... it says /public_html/uploadedfiles. I *think* that corresponds to /home/me/uploadedfiles for some reason. If anyone could explain why tat is to me, I would appreciate that also :)
The log files say that the file isn't found by the way.

Replies are listed 'Best First'.
Re^3: where art thou file?
by dorward (Curate) on Feb 28, 2006 at 13:48 UTC

    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.

      Thanks again for the advice. All much appreciated
Re^3: where art thou file?
by liverpole (Monsignor) on Feb 28, 2006 at 12:42 UTC
    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"