in reply to Writing to the File

Hi

when you specify the file name in open ( Better for CGI programs ), Please specify it with the absolute path. It is always a good practice.

Example :

open ( OUT , ">>/home/user/cgi/mail_file/guestbook.txt" ) or die "cann +ot append to <file> :$!:";
and make sure the user has permission to access the directory.

"Keep pouring your ideas"

Replies are listed 'Best First'.
Re^2: Writing to the File
by msk_0984 (Friar) on Jun 28, 2006 at 13:08 UTC
    Yes

    I have even tried that one also but it did not work
    i have given teh full path name

      Hi

      did you check whether the whole directory is having the permission to write into that file ?

      You have to check whether the cgi user has the permission to create a file or there not ?

      Hope this helps

      "Keep pouring your ideas"