Categories

Category Specific RSS

Limit file download speed

//Author: Jonas John // local file that should be send to the client $local_file = ‘test-file.zip’;    // filename that the user gets as default $download_file = ‘your-download-name.zip’;    // set the download rate limit (=> 20,5 kb/s) $download_rate = 20.5;    if(file_exists($local_file) && is_file($local_file)) {        // send headers     header(‘Cache-control: private’);     […]

FacebookTwitterGoogle+PinterestTumblrStumbleUponRedditLinkedInBaiduApp.netBufferDeliciousDiggDiigoWordPressBlogger PostEmailPrintFriendlyShare

Check if network is available

Check if network is available

Check if network is available

Module Module1

Sub Main() ‘check network is available Dim returnValue As Boolean returnValue = System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable If returnValue = True Then Console.WriteLine("Network available") Else Console.WriteLine("Network not available") End If System.Console.Read() End Sub

End Module

FacebookTwitterGoogle+PinterestTumblrStumbleUponRedditLinkedInBaiduApp.netBufferDeliciousDiggDiigoWordPressBlogger PostEmailPrintFriendlyShare