PHP Classes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roopa17
    New Member
    • Mar 2007
    • 1

    PHP Classes

    Hello
    I am an Software Developer in asp.net, Currently i am in need of doing an application in PHP, So can any one please let me know how to call a class in PHP. in asp we used to call the class as

    *************** *************** *************** *************** *************** ****
    Dim oPostLib
    Set oPostLib = New PostLib
    *************** *************** *************** *************** *************** ****

    And i want to know the code conversion of

    *************** *************** *************** *************** *************** ****
    oMerchant.setMe rchantDetails "","","","" ,
    oBTA.setAddress Details "1",2,3,4,5,6,7 ,8,
    oSTA.setAddress Details 1,2,3,4,5,6,
    oCI.setCardDeta ils "1","2","3","4" ,"5","6","7"

    Dim oPGResp
    Set oPGResp=oPostLi b.postSSL (oMPI,oMerchant ,oBTA,oSTA)
    If oPGResp.getRedi rectionUrl() <> "" Then
    strResponseURL= oPGResp.getRedi rectionUrl()
    Response.Redire ct strResponseURL
    else
    Response.Write "Response code:" & oPgResp.getResp Code() & "<br>"
    Response.Write "Response message:" & oPgResp.getResp Message() & "<br>"
    End If
    *************** *************** *************** *************** *************** ****

    Please Help me on this

    Thanking you
    With Regards
    RoopaMahalakshm i
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    See the Posting Guidelines about enclosing shown code within php or code tags!!

    See THIS for an explanation on using classes in PHP.

    Ronald :cool:

    Comment

    Working...