/    Sign up×
Community /Pin to ProfileBookmark

i cant working with com object in php5

hi all

I have the PHP in wamp server version 5.2.6

I am not able use the COM objects in PHP

i use this code

$word = @new COM(“word.application”) or die(“Cannot start word for you”);
$word->Documents->Open($templatefile);

but i cant open it’s throwing some errors like

PHP Fatal error: Call to a member function Open() on a non-object in C:wampwwwProposalsproposalfinish.php on line 33

(or)

PHP Fatal error: Call to undefined method com:?pen() in C:wampwwwProposalsproposalfinish.php on line 31

pls how to do this help me

thanks in advance

younus.f????

t

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @younus_f 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...