anushka Posted April 1, 2008 Share Posted April 1, 2008 I am reading an ODT file Using Php function how can i do this .My code is below .Please tel me What are the changes i should do <?php $fileHandle = fopen('sample.ODT', 'r+') OR die ("Can't open file\n"); //$fileData = fread ($fileHandle, 1024); echo hello; echo "data = $fileHandle"; fclose($fileHandle); ?> Quote Link to comment https://forums.phpfreaks.com/topic/98966-i-want-read-an-odt-file/ Share on other sites More sharing options...
kenrbnsn Posted April 1, 2008 Share Posted April 1, 2008 What is a ODT file? Does the code work? What do you want to do that the code doesn't do? Explain your question better. Ken Quote Link to comment https://forums.phpfreaks.com/topic/98966-i-want-read-an-odt-file/#findComment-506380 Share on other sites More sharing options...
zenag Posted April 1, 2008 Share Posted April 1, 2008 THIS IS WHAT RU LOOKING FOR.... $fp = fopen("sample.ODT", "rb"); $text = fread($fp,1024); echo $text; Quote Link to comment https://forums.phpfreaks.com/topic/98966-i-want-read-an-odt-file/#findComment-506387 Share on other sites More sharing options...
anushka Posted April 1, 2008 Author Share Posted April 1, 2008 ODT means OpenOffice.org.Which is developed By sun .And it is same like MicroSoft Word.i am able to read the file but the conent is coming Like dis ???????????????.if i Can Change the file format by using Php to txt file.If i can do this ,then i can read Txtfile.Is der any possibilty of Changing the file format Quote Link to comment https://forums.phpfreaks.com/topic/98966-i-want-read-an-odt-file/#findComment-506396 Share on other sites More sharing options...
ansarka Posted April 1, 2008 Share Posted April 1, 2008 May be below link will help you ;) http://www.phpclasses.org/browse/package/3071.html Quote Link to comment https://forums.phpfreaks.com/topic/98966-i-want-read-an-odt-file/#findComment-506422 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.