Page 1 of 1

Calling an object in PHP?

Posted: Tue Jul 16, 2002 12:38 pm
by caymancam
I have this coded in CFML but i need to port it over to a PHP platform. How can i make the same calls in PHP? Any help would be much appreciated!!!!!


<CFOBJECT ACTION="Create" Here is where we call the object.
NAME="FAC"
CLASS="FAC.cGateSecureX">

This is where we set the variables
<cfset FAC.HostName = ""> Hostname is static
<cfset FAC.PortName = ""> Portname is static
<cfset FAC.CardNumber = ""> CardNumber is Dynamic
<cfset FAC.Expiry = ""> Expiry is Dynamic
<cfset FAC.Amount = ""> Amount is Dynamic
<cfset FAC.Merchant = > Merchant is Static
<cfset FAC.Timeout = ""> Time out is static
<cfset FAC.Invoice = ""> Invoice is Dynamic

<cfset execute = FAC.authorize ()>

Posted: Tue Jul 16, 2002 2:24 pm
by BDKR
http://us3.php.net/manual/en/language.oop.php

Once you have the class ported to php, the above URL will help with instantiating the object and using it's methods.

Caio,
BDKR