[ create a new paste ] login | about

Link: http://codepad.org/YLOxUIag    [ raw code | output | fork ]

balajimca - PHP, pasted on Jun 13:
1
2
3
4
5
6
7
8
9
10
11
<?php
$date=date("d_m_Y_h_i",time());
	$file_name="service_report_".$date.".xls";
	$data=ob_REQUEST_contents();
	ob_end_clean();
	header("Content-type: application/x-msdownload");
	header("Content-Disposition: attachment; filename=$file_name");
	header("Pragma: no-cache");
	header("Expires: 0");
	print "$data";
?>


Output:
1
2

Fatal error: Call to undefined function ob_REQUEST_contents() on line 4


Create a new paste based on this one


Comments: