/    Sign up×
Community /Pin to ProfileBookmark

Error using COM

Hi

I’m using a COM object from Xceed Software to create self extracting zip files (.exe). Everything works pretty good except one line:

[code=php]
$xZip->SfxMessages(3) = “This is my message”;
[/code]

I get an error on this line:

PHP Fatal error: Can’t use method return value in write context in test.php on line 133

In ASP the same line would read:

xZip.SfxMessages(xsmIntro) = “This is my message”

The index of xmsIntro is 3, and I get the current value of this message if I do:

[code=php]
$value = $xZip->SfxMessages(3);
[/code]

Seems like I cannot write to it. Is this a “weakness” in PHPs implementation of COM stuff?

EDIT: if I do:

[code=php]
$xZip->SfxMessages[3] = “This is my message”;
[/code]

instead, I get this error:

Error [0x8002000e] Invalid number of parameters.

Anybody know of some other way of creating self extracting zip files (.exe)?

Thanks
Lubox

to post a comment
PHP

0Be the first to comment 😎

×

Success!

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