Hi every1 i have got a BIG PROBLEM!!! PLZ HELP ME
I have made a small application in VB which has got forms. and I have complied as exe.
And now i want my php script to execute that exe.....how do i do that.....the commands like passthru, exec, system....doesnt work...pzl tell me how to do.........in my form code......im using printer.print "hello".............this causes not to execute, coz it says printer not found......but if i run the exe as stand alone or from VB it runs perfectly............but if i try to run the exe from the browser from the php.....it says printer error.....it says printer not found......what the hell..??

    Have you tried exec("start c:\path\to\exe")?

      Th eproblem is that PHP is server-side only, and your VB forms are obviously client-side. You will need to embed them into an html page somehow and send that to the user. Can't tell you how as I don't do VBscript, although I'm an experienced VB and Access programmer. Basically, if I can avoid anything Microsoft then I will, and I've successfully avoided all of their web tools for years.

        hi there thanx for the reply.............yes i have tried that....may be i didn't mention in my question..............the exe does open, even if there are forms......but in my code im printing a line to my printer.....printer.print "Hello"..........this doesn't work.......when i run this exe from php....it says printer error, printer not found......but then i run the exe from the vb.....or just double click the exe it runs perfectly.....only if i try to opn it from the browser from php........it says printer error........WHY???

          Did you read Roger Ramjet's post at all, it basically summed up why it wont work. However you may want to try COM http://www.php.net/manual/en/ref.com.php I doubt this will work I also have 0 experience with working with COM objects.

          Also is your period key locked down or something? Do you really need 5+ dots after every sentence, its quite annoying.

            nope dude. I tried the COM thing. It doesn't work.
            Plz tell me sum another way.

              Rewrite the damn thing in PHP. Can't be that difficult. Or just forget php and use ASP or some other mickeysoft tool.

                Write a Reply...