Advanced Search

Results 1 to 3 of 3

Thread: COMponent in PHP

  1. #1
    Join Date
    Oct 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default COMponent in PHP

    Hi,

    I am an ASP developer... and uses a COMponent (under COM+) to access the data. The COMponent (dlls) are coded in Cobol and wanted to access it in PHP but I'm not sure whether PHP has functionalities for COM+

    Can anyone give an example of how can I access COMponent in PHP? My intention is to actually migrate from ASP to PHP development. dotNET is quite slow and requires big burden on the web server.

    If I am going to access COMponents in ASP, I could always do it by coding (below);

    Code:
    <%
    'submit button is clicked
    if act = "Submit" then
      usrName = trim(request.Form("txtUser"))
      usrPass = trim(request.Form("txtPass"))
      userIP = request.servervariables("REMOTE_ADDR") 
      stat = siteObj.checkUserID(usrName, usrPass, userIP, usrSession)
      if stat <> "00" then
         ioStat = "err"
         ioText = "information entered is incorrect....."
      else
         session.contents("sessionUserID") = trim(usrSession)
         response.redirect("okpassword.asp") 
       end if
    end if
    %>
    where;
    stat = siteObj.checkUserID(usrName, usrPass, userIP, usrSession)
    is a COMponent (DLL) registered function

    and checkUserID(usrName, usrPass, userIP, usrSession) is the function I am calling with corresponding parameters

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,627
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    PHP supports it: http://us2.php.net/manual/en/book.com.php

    I've never used it, and it seems to be Windows-only (of course). good luck!
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  3. #3
    Join Date
    Oct 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default COM+ in PHP

    Quote Originally Posted by traq View Post
    PHP supports it: http://us2.php.net/manual/en/book.com.php

    I've never used it, and it seems to be Windows-only (of course). good luck!
    From the site you posted, it seems that it can be done...

    It is just that sometime people who knew PHP are not interested with ASPs. Well, I could attest to it because I myself would like to study PHP

Bookmarks

Posting Permissions

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