Hi Patrick,
Some great tips. I'll definitely use them.
Thanks a bunch, Bob.


----- Original Message ----- 
From: "Patrick Bierans" <[EMAIL PROTECTED]>
>> $dir = $_SERVER['DOCUMENT_ROOT']."/tmp";
> 
> Make sure that you do not delete temporary files from other scripts. I would 
> suggest a seperate folder for all "referer-semaphore-files":
> 
> $dir=$_SERVER['DOCUMENT_ROOT']."/tmp/referers/";
> 
> Another tip: If you write the ending "/" to $dir you can skip it later at 
> filemtime($dir.$fname) and unlink($dir.$fname).
> 
> And make sure that the filenames also have a defined length and 
> file-extension: /^[a-zA-Z0-9]{32}\.semaphore$/ so you do not delete foreign 
> files. 



Community email addresses:
  Post message: php-list@yahoogroups.com
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to