Article:
  Generating One-Time URLs with PHP
Subject:   Why use a text file?
Date:   2002-12-06 01:38:46
From:   anonymous2
I think it should be much easier to simply write a file named by our secret ID (in a special directory).
Then all you need is file_exists() and unlink(), no need to lock & parse & modify a text file.