Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1637 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

PHP and Word

Thread title: PHP and Word
Closed Thread    
    Thread tools Search this thread Display Modes  
02-28-2007, 07:45 AM
#1
fooblah123 is offline fooblah123
Status: .
Join date: Jan 2007
Location:
Expertise:
Software:
 
Posts: 1,868
iTrader: 4 / 86%
 

fooblah123 is on a distinguished road

  Old  PHP and Word

Hi

I was wondering if PHP can create word documents with stuff in it?

Thanks

02-28-2007, 08:11 AM
#2
Sam Granger is offline Sam Granger
Status: Request a custom title
Join date: Feb 2005
Location: The Netherlands
Expertise:
Software:
 
Posts: 2,616
iTrader: 19 / 88%
 

Sam Granger is on a distinguished road

Send a message via MSN to Sam Granger

  Old

You can do this quite easily! Take a look at the following tutorial:

http://www.phpbuilder.com/columns/yunus20031124.php3

02-28-2007, 08:27 AM
#3
fooblah123 is offline fooblah123
Status: .
Join date: Jan 2007
Location:
Expertise:
Software:
 
Posts: 1,868
iTrader: 4 / 86%
 

fooblah123 is on a distinguished road

  Old

If anyone here is good at this area of expertise i might have a paid PHP job for them.

Thanks

02-28-2007, 09:16 AM
#4
RaZoR^ is offline RaZoR^
RaZoR^'s Avatar
Status: Member
Join date: Feb 2006
Location:
Expertise:
Software:
 
Posts: 191
iTrader: 1 / 100%
 

RaZoR^ is on a distinguished road

  Old

I wouldn't use Word documents because not everybody pays for M$ Office

RTF or PDF format would be much better PHP has built-in functions for PDF in PDFlib, packaged with PHP by default with version >=4.30

Can't really do much in school in terms of examples but the function reference ca be found @ http://php.net/pdf

02-28-2007, 10:46 AM
#5
Sam Granger is offline Sam Granger
Status: Request a custom title
Join date: Feb 2005
Location: The Netherlands
Expertise:
Software:
 
Posts: 2,616
iTrader: 19 / 88%
 

Sam Granger is on a distinguished road

Send a message via MSN to Sam Granger

  Old

Originally Posted by RaZoR^ View Post
I wouldn't use Word documents because not everybody pays for M$ Office

RTF or PDF format would be much better PHP has built-in functions for PDF in PDFlib, packaged with PHP by default with version >=4.30

Can't really do much in school in terms of examples but the function reference ca be found @ http://php.net/pdf
Agreed. RTF would be a better solution. Also to generate a .doc file, you would need a windows server I believe.

02-28-2007, 03:47 PM
#6
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

www.openoffice.org is a free alternative to MS office, I like it more.

on topic, id rather see a rtf or pdf then a doc

02-28-2007, 04:33 PM
#7
Xi0s is offline Xi0s
Status: Sin Binner
Join date: Dec 2006
Location: Huddersfield, UK
Expertise:
Software:
 
Posts: 384
iTrader: 3 / 83%
 

Xi0s is on a distinguished road

Send a message via MSN to Xi0s

  Old

Because colleges and universitys tend to stick with the MS packages, eg Office, Excel, it has become very common, with apple having to release their version to work with MS Office. However when it comes to the internet domain, you are dealing with the entire world, of which quite a few people dont even have computers able to run word documents, never mind PDF files, so RTF is usually the best choice, however if you concider the percentage of users who can run PDF files (for free lets not forget) its usually better to go with that. As for producing pdf files using PHP i dont think this is possible as creating PDF's requires a developers license from adobe i think. Incedentally, what does everyone think of adobe's takeover of macromedia?

02-28-2007, 09:02 PM
#8
bluesaga is offline bluesaga
Status: Member
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 137
iTrader: 1 / 100%
 

bluesaga is on a distinguished road

  Old

Id personally much prefer to see a PDF file rather than a word file, and id expect that PDF would be faster to generate due to the pdflib in php!

ref: http://uk2.php.net/manual/en/ref.pdf.php

03-01-2007, 05:20 AM
#9
DJAC is offline DJAC
DJAC's Avatar
Status: Member
Join date: Mar 2006
Location: Canada
Expertise:
Software:
 
Posts: 286
iTrader: 0 / 0%
 

DJAC is on a distinguished road

Send a message via MSN to DJAC

  Old

rtf??? Only nerds like us know .rtf hehehe

Go with .pdf or .doc. I mean, who can't open .doc files?

For people who don't have MS Word, there are a bunch of free alternatives as Village Idiot mentioned.

Lastly, if you're really that worried, then just offer .pdf AND .doc formats.

03-01-2007, 05:18 PM
#10
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Just for reference, people who don't have MS Office, and have OpenOffice are able to open .docs with OOo. I'm assuming other free alternatives offer support as well.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed