info_rene
10-01-2010, 06:47 AM
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);
<%
'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
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);
<%
'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