Jump to content

Integrating With Vb


Zepo.

Recommended Posts

Quite simply - yes you can (well sort of), via the "ScriptControl" and Windows Script host. This basically allows you to execute scripts from within your VB app, be they JScript, VBScript, PHP, Python or whatever has been registered with WSH.

 

For a hint, check this out.

 

Basically you'd need a recent PHP 5 version plus the "Collection of PECL modules for PHP 5.0.5" ZIP that comes as an extra download - you need the "php5activescript.dll" in this. You'll need to run "regsvr32 php5activescript.dll" from the command line, once you got PHP installed correctly (php.ini config etc.), which will register PHP with WSH.

 

This presentation will give you some hints: http://netevil.org/talks/PHP-and-COM-2005.pdf - scroll to the page starting IActiveScript - the next few pages from there.

 

Otherwise this (first useful link from Google) tutorial seems to show executing VBScript from VB http://www.thescarms.com/VBasic/WshRegWait.asp - swap the VBScript for PHP and you're there ;-) (and you're on your own BTW)

Link to comment
https://forums.phpfreaks.com/topic/93950-integrating-with-vb/#findComment-481371
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.