Werner Otto wrote:
I have this script mentioned below. When I run it from command
line: perl test.cgi all works as it should. When I run it from my
browser it only writes the file displays the confirmation, but does
NOT email my files.

<snip>

my $my_file_gif = 'logo.gif';

<snip>

my $my_file_zip = 'running.pdf';

<snip>

Any ideas?

I would try changing those to full paths. It's not advisable to rely on an assumption about the working directory. Optionally you can set the working directory with the chdir() function.

/ Gunnar

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to