Server Se File Kaise Download Kare -By Using Php Script

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
Previous
Next Post »

1 comments:

Click here for comments
Unknown
admin
9 June 2018 at 04:22 ×

very interesting and nice concept with clear explanation ...keepyit up bro

Congrats bro Unknown you got PERTAMAX...! hehehehe...
Reply
avatar
Thanks for your comment