Visual Basic code in PHP??

Darko

Senior Member
Joined
Jul 9, 2008
Messages
627
Reaction score
21
Location
GP
Does anyone know if this can be done?

I need to accept a product code, and depending on the type of registration, i need to generate a serial.

I am using an old piece of code that my boss doesnt want to get rid off.

It was written as a VB project.

I need it in my website, and i have an idea of using it under the <script type="vbscript"> tag.

What i am having an issue with is passing my new serial back to the php form.

How do i grab it with my php?

:(
 
I suppose you could use the php system, exec or passthru commands to run the vb executable and have it return the serial as a parameter.

These commands are subject to vulnerabilities if used incorrectly and it isn't a great idea to call the vb program for something like this. Wouldn't it be worth re-writing the algorithm to generate a serial in php instead of vb?
 
Top
Sign up to the MyBroadband newsletter
X