Click to See Complete Forum and Search --> : Web server problem with creating/readin files


johnn
04-06-2003, 05:05 PM
Im learning perl and have encountered a problem most likely with the way my web server is setup? The problem has just become apparant now Im try to manipulate files. The code im using is:

open (SPUD, “>potatoes.txt”);
print (SPUD “Maris Piper\n”);
print (SPUD “King Edward\n”);
close (SPUD);

the txt file isnt been created and all im gettin is a Internal Server Error, im using apache on a win2k system and would be grateful if anyone could help me out. Do i need to alow access to something to be able to write the files? I dont know what to look for.

thanks.

pyro
04-06-2003, 08:41 PM
Make sure the directory you are trying to write to is not read-only.

jeffmott
04-06-2003, 09:40 PM
Make sure you're using straight quotes and not curly ones.