www.webdeveloper.com
Results 1 to 3 of 3

Thread: Web server problem with creating/readin files

  1. #1
    Join Date
    Mar 2003
    Posts
    4

    Web server problem with creating/readin files

    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.

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Make sure the directory you are trying to write to is not read-only.

  3. #3
    Join Date
    Nov 2002
    Location
    NY, USA
    Posts
    731
    Make sure you're using straight quotes and not curly ones.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles