Jump to content

Archived

This topic is now archived and is closed to further replies.

praveenhotha

Accessing excel file

Recommended Posts

How can i open an excel file using fopen, when i do so , its giving the message that no such file exists... what should be the extension is it .xls or shall give the name of the file only??

Share this post


Link to post
Share on other sites
<?php
$filename='test.xls';
if(file_exists($filename))
{
$fp=fopen($filename,"r");
echo $fp;
}
else
{
echo "file not found!";
}
?>

Share this post


Link to post
Share on other sites
It will work fine. Anyway
if u want to try more means
http://www.paggard.com/projects/xls.reader/   
http://www.phpclasses.org/browse/package/1919.html


Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.