Jose Santos wrote :1328
This is a very good code example, and very useful to download or export to file !!
walid yasen wrote :1363
hi i use that code but have all this error, and i`m sure its form me , can yu help me why that error happen.
"Warning: Cannot modify header information - headers already sent by (output started at /home/../..../.../fdownload.php:1) in /home/.../../../fdownload.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /home/.../.../..../fdownload.php:1) in /home/.../.../.../fdownload.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at /home/..../.../.../fdownload.php:1) in /home/.../.../.../fdownload.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at /home/../../.../fdownload.php:1) in /home/.../../../fdownload.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /home/.../.../.../fdownload.php:1) in /home/.../.../../fdownload.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at /home/.../.../.../fdownload.php:1) in /home/../../../fdownload.php on line 13
berber berberon wrote :1364
Looks like you have a space somewhere in your file sent before the header info is sent. look for empty lines in the begining of your code.
dean williams wrote :1379
why does everyone use <? ... ?>
This is NOT correct and does NOT work on all servers, please use the PHP standards...
<?php ... ?>
Anyone having problems can try that...
xgrapher xxx wrote :1688
I plopped the code on a php which I call upon from page, eg: xgrapher.com/download.php?file=test.mpg and it worked perfect. Thanks!
However, if I went back and tried downloading another file, it would simply terminate the file which is being downloaded.
I guess its because the variables are reserved till the download is completed. Could you please help?