On Mon, 15 Sep 2003, Xu, Qiang (XSSC SGP) wrote:

> It doesn't work even I write the "file" as:
> file => "http://$ENV{'HTTP_HOST'}/Mail-Sender.zip"
>
> (I have put the file Mail-Sender.zip into the root folder
> of my apache web server.)
>
> But it can find the file and send the mail when I write it as:
> file => "d:/apache group/apache/htdocs/Mail-Sender.zip"
>
> really confused...
>
> Anyone can help?

In general, it's not adviseable to assume a particular
current directory when using mod_perl (or even for cgi
scripts) - try putting in a call
   use Cwd;
   my $cwd = cwd;
   ...
   ...
   print "cwd is <B>$cwd</B>";
into your script to see what mod_perl has for cwd.
What you might try, if you don't want to give the full
path name to the file, is using the environment variable
DOCUMENT_ROOT, rather than HTTP_HOST.

-- 
best regards,
randy kobes
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to