/    Sign up×
Community /Pin to ProfileBookmark

msword and php

Hi below is code that I found that opens a word file. Is there anyway that I can is the process of openng the file and write to the word document when it opens it. Ideally to the location of a bookmark on the document.

I’m trying to avoid using COM as its creating me some challenges (lots of error messages)

[code=php]
<?php
// We’ll be outputting a Word Document
header(“Content-type: application/msword”);

// It will be called worddoc.doc
header(“Content-Disposition: attachment; filename=worddoc.doc”);

// The file source is in test.doc
readfile(‘letter.doc’);
?>

[/code]

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @kproc 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.17,
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,
)...