||Generating One-Time URLs with PHP|
|Subject:||Why use a text file?|
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.
Hear us Roar