Re: Download log

From: Date: Wed, 24 Apr 2002 17:21:47 +0000
Subject: Re: Download log
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-9832@lists.php.net to get a copy of this message
>> erm, >> >> I take that back. >> >> it would actually appear that the logs are going to a different place than i >> thought. You might want to cd to your mirror directory, and remove the @ >> operator before the fopen call; you would be able to see any issues. >> >> I think it was possibly a read /write lock . Nope, as you can see in this code, it opens up a remote log script. We already discussed to put it into a registered shutdown function, so it will be called after the download. Or we can turn of autoflush in the script. BTW to Alain, it should not be a problem for the download, if it fails to log the download. After the fopen timeout, it will go on, and you'll get the file... Goba > $remote_log = > @fopen("http://www.php.net/log_download.php". > "?download_file=" . urlencode($download_file). > "&mirror=" . urlencode($SERVER_NAME). > "&user_referer=" . urlencode($HTTP_REFERER). > "&user_ip=" . urlencode($remote_addr), > 'r');

« previous php.mirrors (#9832) next »