Hello Everyone,

I want to transfer data in export from my php reports.
it works also. but the problem is when i open that .xls file in notepad i can view all my data. i don't want this.my data will be unsecure.can anybody tell me solution??
code is as below:

$xlsfile = "Total Addtion".date("m-d-Y-hiA").".xls";

header('Content-type: application/ms-excel');
header("Content-Disposition: attachment; filename=$xlsfile");
header("Pragma: no-cache");
 header("Content-Transfer-Encoding: binary ");

Recommended Answers

All 4 Replies

So what do you want ?

when i open it in notepad javascrit can be viewed also sometime query if they arey coded as echo

if u open a normal excel file in notepad u can't read anything .

Maybe you are outputting the wrong thing. Hard to say without any code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.