Results 1 to 4 of 4

Thread: PHP server and VB6 core

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2005
    Posts
    27

    PHP server and VB6 core

    Hi folks!
    I am new in this forum as I am VBF oriented.
    Anyhow, I have an idea but I do not know how to do. I want to setup PHP server for our Intranet. That is fine, my colleauge can do. But my idea is to program Client - server application where the client will be PHP client (only visualisation) and the active core would be programmed in VB6 (active core that will return the data from MySQL server). We have data in MySQL and we have a lot of VB6 codes that manipulates with data. If I would be able to program the functions in VB6, compile it to e.g. DLL or OCX and we could publish it on PHP server that would refer to those functions, would be great. I could the share the workload between a few colleaugues. Would this be possible?

    Thanks a lot.

    Krava

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: PHP server and VB6 core

    well, it would be possible to create extensions for PHP, but I'm not really sure what you want to do would be possible. as far as I know (and I will say that I'm not entirely sure of this), PHP extensions are written in the PHP interpreter's language: C. you can learn a lot about writing extensions for PHP here.

    it would honestly probably be faster/more efficient for you to rewrite the VB functions in PHP. I would say that it will also be a lot less code, as VB tends to be extremely verbose. it would most likely interface with MySQL faster (I don't even know if you could create a library [DLL] that -could- interface with MySQL by itself) than something written in VB, too.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2005
    Posts
    27

    Re: PHP server and VB6 core

    Hello, kows!

    Thank you for your quick reply!
    I understood.
    To be frank- if I have to start programming in PHP then I can start with anything else, like ASP etc. I wanted to avoid this because I have only 1 person with PHP knowhow and another 4 guys with VB6 knowhow. And a lot of experience with VB6, ADO, SQL.
    I have to reconsider.

    With kindest regards

    krava

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: PHP server and VB6 core

    You can load DLL's into PHP and call their functions but it is not something I would recommend.

    http://uk3.php.net/manual/en/refs.utilspec.windows.php

    Doing this would obviously add overhead to page requests and I doubt that based on their apparent inability to learn a new language, your programmers will be able to adapt the programs to ensure they are thread safe (i.e. detecting race conditions, dead locks, managing sessions etc.)

    If you want to write in Classic VB I suggest that you develop something in ASP. While it is not the best, the language (VBScript) is very similar to VB and would only require learning web web design / programming concepts.

    Or you could of course tell them all that they have six months to learn either .NET or PHP or they can go work for someone else
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width