Thanks for the code. It works fine in Firefox and Google Chrome, but in IE. In IE, it downloads the php script itself. I have put your code inside a separate file (namely download.php) and set it as the action of my form. Inside the form, two input elements are there - one gets the filename and the other is a submit button that sends the filename to '$filename' in download.php. This is required as random files are there to download. Please help. Thanks in advance.
hi I m getting a error frequently,when i m using header function for download or redirect to another page. this error is getting in my application and also in my simple practise code.... Can u help me plz...plz??? in below i have written a simple program to redirect to another page through header....and my error is
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\practise14.php:1) in C:\xampp\htdocs\practise1.php on line 4
also when i m using session code or cookie ,in that time also getting same header error . Thanks Jagan
I believe this is among the such a lot significant information for me. And i'm glad reading your article. However should observation on some common issues, The website taste is perfect, the articles is in reality nice : D. Good process, cheers
Great...
ReplyDeletethanks
Thanks for the code.
ReplyDeleteIt works fine in Firefox and Google Chrome, but in IE. In IE, it downloads the php script itself.
I have put your code inside a separate file (namely download.php) and set it as the action of my form. Inside the form, two input elements are there - one gets the filename and the other is a submit button that sends the filename to '$filename' in download.php. This is required as random files are there to download.
Please help. Thanks in advance.
its showing this error
ReplyDelete-----------------------------------------------------------------
Warning: filesize() [function.filesize]: stat failed for c.doc in C:\xampp\htdocs\test1\download.php on line 22
Warning: readfile(c.doc) [function.readfile]: failed to open stream: No such file or directory in C:\xampp\htdocs\test1\download.php on line 23
i got the error,extension was not properly defined.
ReplyDeleteworking properly in ie and chrome..
Thanks!!.. I'll try this codes of yours and I'll give you feedback :)
ReplyDeleteCheers!!
hi
ReplyDeleteI m getting a error frequently,when i m using header function for download or redirect to another page.
this error is getting in my application and also in my simple practise code....
Can u help me plz...plz???
in below i have written a simple program to redirect to another page through header....and my error is
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\practise14.php:1) in C:\xampp\htdocs\practise1.php on line 4
also when i m using session code or cookie ,in that time also getting same header error .
Thanks
Jagan
I believe this is among the such a lot significant information for me. And i'm glad reading your article. However should observation on some common issues, The website taste is perfect, the articles is in reality nice : D. Good process, cheers
ReplyDeleteuse ob_start(); in the beginning of page and ob_flush(); at the end of page
ReplyDeleteWHen i am clicking in Download Link for download images.. it download the "download.php" file itself.. what to do please help
ReplyDelete