Page 1 of 1

I want to protect excel file by password in php code

Posted: Sat Aug 28, 2010 2:14 am
by afsnau
Hi,
I am generating excel file(.xls) by PHP code , but now my requirement is that to protect this excel by password .
I want to protect some column by password, by this no one able to edit some specific column without password eg. where we perform some calculation (formula) .

Plz reply
Thanks

Re: I want to protect excel file by password in php code

Posted: Sat Aug 28, 2010 8:00 pm
by devarishi
By the way, how are you generating a .xls file right from the output of your PHP code?

Give me an example, if you can. Or generate an a .xls with two columns as resulted from the following PHP echo commands:

Code: Select all

<?php

echo "Employee Name";
echo "Salary";

?>