Download-Files-from-server-using-php-script-
<?php
$file = 'Gajabwap.jpg';//your file name here
if (file_exists($file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
readfile($file);
exit;
}
2-Javascript Ka Use Karke Internet Connection Kaise Check Kare-
<script>
if(navigator.onLine)
{
alert('You are Online');
}
else
{
alert('You are Offline')
}
</script>
Demo-Check Internet Connection
Thank You
Team Gajabwap Web In Hindi
Also Read-
Alexa Rank Checker Tool Kaise Bnaye
1 comments:
Click here for commentsvery interesting and nice concept with clear explanation ...keepyit up bro
ConversionConversion EmoticonEmoticon