--- Nichole Bialczyk <[EMAIL PROTECTED]> wrote:
> i'm sorry. i didn't think that you guys would want me to include my
> code. i just assumed that i should try to make my question to the
> point with as little text as possible. i am still having the same
> problem (and i do have the ").

Better to see what you're doing. =o)

> here is my exact code:
> 
> sub log {
>    if (open(LOG,">$logfile")) {
>       print "Content-type: text/html\n\n";
>       print "Couldn't open $logfile. $!\n";
>       print "At $date, $ENV{'REMOTE_HOST'} couldn't enter the site.";
>       exit;
>    }

if the file opens, print-print-print, exit.
open() returns nonzero on success.

>    print LOG "At $date, $ENV{'REMOTE_HOST'} came here using 
> $ENV{'HTTP_USER_AGENT'}.\n"; 
>    close (LOG);
> }             

These will never fire if the file opens.
If it fails, the file isn't open, and so you can't write to it, or
close it.

Still having permissions problems?

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to