I want to protect excel file by password in php code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
afsnau
Forum Newbie
Posts: 1
Joined: Sat Aug 28, 2010 1:36 am

I want to protect excel file by password in php code

Post 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
devarishi
Forum Contributor
Posts: 101
Joined: Fri Feb 05, 2010 7:15 pm

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

Post 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";

?>
Post Reply