open a file for input
Posted on 2000-01-16
Why does the following part of my script result in giving me the error message "COULDNT OPEN FILES.HTML":
#---BEGIN SAMPLE SCRIPT
$FULL_PATH = "D:\\webs\\websites\\URL.com\\cgi_html\\";
open (CONTENTS, "< $FULL_PATHfiles.html") || &CgiDie ("Couldn't open files.html");
#---END SAMPLE SCRIPT
I use the literal path because the URL path alone does not work at all with anything I use it for. I can open a file for OUTPUT but not an existing file for INPUT. My server admin says because they use a WINDOWS NT server that directly executes a PL file, I do not have to set permissions. I thought perhaps it might be something due to an illegal access attempt. Hope this error looks familiar to someone.