/    Sign up×
Community /Pin to ProfileBookmark

Word document generated by PHP

Hello ppl
Is it possible to et data out of MySQL with PHP and generate [B][COLOR=”Red”]Word documents [/COLOR][/B]from it?
I have heard it is possible to get PDF files (Altough have no idea how yet) but can we generate Word documents?
Thanks a bunch in advance
XTI

to post a comment
PHP

8 Comments(s)

Copy linkTweet thisAlerts:
@XTIauthorAug 16.2007 — Thanks for the link but unfortunately code in that page did not work. I am getting error ([B]Fatal error on line 2[/B]).

I am using a [B]UNIX server[/B].

This must be a common problem to generate Word or Excel from PHP the way PHP is expanding.

Any ideas anyone?

Thanks XTI
Copy linkTweet thisAlerts:
@ellisglAug 16.2007 — Any errors?
Copy linkTweet thisAlerts:
@XTIauthorAug 16.2007 — Error:

Fatal error on line 2

Line 2 is where is referes to the COM thing. My site is on a UNIX server that might be the problem. How can this be done if one is not using Windows Server?
Copy linkTweet thisAlerts:
@ellisglAug 16.2007 — I don't think you can use COM stuff on UNIX.. I've never really played with it.
Copy linkTweet thisAlerts:
@XTIauthorAug 16.2007 — then what's the solution?
Copy linkTweet thisAlerts:
@ellisglAug 16.2007 — Does it have to be word formated or can it just be a plan text document?

You could look up the spefication on the word formated doc file. I know they use some UTF8 stuff, other than that - I don't know much about the structure of the file.
×

Success!

Help @XTI spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...