Calling an object in PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
caymancam
Forum Newbie
Posts: 1
Joined: Tue Jul 16, 2002 12:38 pm

Calling an object in PHP?

Post 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 ()>
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post 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
Post Reply