www.webdeveloper.com
Results 1 to 5 of 5

Thread: Killing files

  1. #1
    Join Date
    Jan 2003
    Location
    West Sussex, United Kingdom
    Posts
    12

    Killing files

    I cannot made head or tail of the kill function - I have tried kill ($filename); and varieties of it, but the file remains on the system (actually in the cgi-bin - is this the reason why it does not delete?).

    Thanks to all in advance

    Don

  2. #2
    Join Date
    Dec 2002
    Location
    Pleasanton, CA
    Posts
    2,132
    Try.. unlink("$filename"); to delete a file.

  3. #3
    Join Date
    Dec 2002
    Location
    Pleasanton, CA
    Posts
    2,132
    Try.. unlink("$path/$filename"); to delete a file.

    DOUBLE POST:
    It said wait 60 sec before posting. What it didn't say was my post would go up anyway. MOST

  4. #4
    Join Date
    Jan 2003
    Location
    West Sussex, United Kingdom
    Posts
    12
    Originally posted by nedals
    Try.. unlink("$filename"); to delete a file.
    Thanks very much for your response - I will try this - my perl book does not give this instruction (or any other!)

  5. #5
    Join Date
    Dec 2002
    Location
    Pleasanton, CA
    Posts
    2,132
    Pick up a copy of..

    O'Reilly's Perl 5 pocket reference

    It's a small reference book of the majority of the Perl instructions and it's only $7.00 in the US. You need to know some Perl, or other programming language, to get the most out of it.

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