very basic code which we use offten in our day to day development and sometime we stucked . i write those issue here with simple solution. You will get codes of html, css, javascript, jquery, json,ajax, node.js, vue.js, nuxt.js, php and Mysql
Friday, December 18, 2015
Thursday, December 17, 2015
Make Download link and force to download on browser using PHP
$name = $_GET['name'];
$fname = $_GET['file_name'];
$dir_path = __DIR__.'/../uploads/';
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header("Content-Disposition: attachment; filename=\"" . $name . "\";");
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($dir_path.$fname));
ob_clean();
flush();
readfile($dir_path.$fname);
exit;
$fname = $_GET['file_name'];
$dir_path = __DIR__.'/../uploads/';
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header("Content-Disposition: attachment; filename=\"" . $name . "\";");
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($dir_path.$fname));
ob_clean();
flush();
readfile($dir_path.$fname);
exit;
Saturday, October 17, 2015
===================== Don't Buy Lenovo K3 note.. ==========================
after using this phone since last 2 week i have nothing than regret myself.
lenovo owner are trying to tag this product as Luxury Brand but in reality its a shit.
200% i will tell you that levono has worst developer and tester who don't know the market needs.
why i am angry. read below
1. its lagging alot even i had not installed too many Apps. (i have M-indicator, slack, GreyTipHr whatsapp, google hangout)
2. if you plug ur charger into laptop and start any application (try camera ) it will tale enough time to make you angry.
3. if you will use another charger (even in wall socket ) device will show "its charging" when its not charging. in evening 7 PM i plunged carbon charger and when i back 7:40 PM, you will not believe it but i found same 42% as it was before.
4. even with lenevo charger, my device is not charging via laptop. (in 30 mnt i am getting 1% increment in charging.)
only camera is good nothing else. if they can return my money or replace with other phone..it will be great help for me.
Suggestion for lenevo Dev-: Wearing nice jacket, shoes and googles will not make you popular, you should be nice by your karma...(designing the nice UI is not all About, care about your functionality)
Worst product Ever i found.
Monday, October 12, 2015
Disable cell broadcast notifications on Lenovo K3 Note
Go to Message Setting ->
-> Cell Broadcast
-> Select Provide
-> Uncheck the "ETWS Alert".
-> Cell Broadcast
-> Select Provide
-> Uncheck the "ETWS Alert".
Subscribe to:
Posts (Atom)