Learn Microsoft Excel Training from the Best Tutors
Search in
Microsoft -Excel Stream handler is a PHP Class, This class implements a stream handler interface to read and write Ms Excel spreadsheet files in the .XLS format.
XLS files may be read and written using PHP open, read or write, or any other PHP functions that can access to streams. The file name has the format where is the path of the actual spreadsheet file to be read or written.
Example ms-excel file in the following way :
$fp
= fopen("
xlsfile://Rakhi/test.xls", "wb");
if
(!is_resource($fp)) {
die("Cannot open excel file");
}
$data= array(
array("Name"
=> "Bob Loblaw", "Age"
=> 18),
array("Name"
=> "Popo Jijo", "Age"
=> 25),
array("Name"
=> "Tiny Tim", "Age"
=> 59)
);
fwrite($fp, serialize($data));
fclose($fp);
//code will read the excel files
header ("Content-Type: application/x-msexcel");
header ("Content-Disposition: attachment; filename=\"sample.xls\""
);
readfile("
= fopen("xlsfile://Rakhi/data.xls");
exit;
Related Questions
which is the best institute or college for Power bi and AWS course with job Support in Pune location?
How many days it will take to complete advance excel course?
Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com
Ask a QuestionRecommended Articles
Why Should you Learn Microsoft Office
Microsoft Office is a very popular tool amongst students and C-Suite. Today, approximately 1.2 billion people across 140 countries use the office programme. It is used at home, schools and offices on a daily basis for organizing, handling and presenting data and information. Microsoft Office Suite offers programs that can...
Make a Career in Mobile Application Programming
Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...
What is Applications Engineering all about?
Applications engineering is a hot trend in the current IT market. An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...
Make a Career as a BPO Professional
Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...
Looking for Microsoft Excel Training classes?
Find best Microsoft Excel Training classes in your locality on UrbanPro.
Are you a Tutor or Training Institute?
Join UrbanPro Today to find students near youFind best tutors for Microsoft Excel Training Classes by posting a requirement.
Get started now, by booking a Free Demo Class