/    Sign up×
Community /Pin to ProfileBookmark

PHP and COM

Hi everyone,

I’m trying to call functionality from an executable (.exe) file from php. To make that work, I built a com shell around the application and while that seems to work fine when I call it from another executable, php times out when trying to create the com object.

[code=php]$MyApp = new COM(‘MyApplication.MyAppIntf’);
$Data = $MyApp->GetPersonData(‘JohnSmith’);
echo $Data;[/code]

Maybe I’m calling it wrong from php, or maybe you have a better idea. But it needs a form (so it can’t be a dll) and it has to be out-of-process (meaning only one instance of the application must be running at any given time and multiple clients can use it).

Any ideas?

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @ava 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.18,
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,
)...