Jump to content


Photo

Accessing excel file


  • Please log in to reply
3 replies to this topic

#1 praveenhotha

praveenhotha
  • Members
  • PipPip
  • Member
  • 27 posts
  • LocationBangalore

Posted 22 August 2006 - 05:22 AM

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??

#2 manmadareddy

manmadareddy
  • Members
  • PipPipPip
  • Advanced Member
  • 50 posts

Posted 22 August 2006 - 06:35 AM

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

#3 praveenhotha

praveenhotha
  • Members
  • PipPip
  • Member
  • 27 posts
  • LocationBangalore

Posted 22 August 2006 - 08:01 AM

it doesnt work that way...I've tried it.

#4 manmadareddy

manmadareddy
  • Members
  • PipPipPip
  • Advanced Member
  • 50 posts

Posted 22 August 2006 - 09:10 AM

It will work fine. Anyway
if u want to try more means
http://www.paggard.c...ts/xls.reader/   
http://www.phpclasse...ckage/1919.html







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users