#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    2
    Rep Power
    0

    Question PHP integration with ColdFusion


    Hi friends,

    I am php developer. i want to migrate the cold fusion project to php. Can any one please give example and explanation about how to call php function from cold fusion. and can u give one program code.
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,243
    Rep Power
    967
    You can't, they're different languages.
  4. #3
  5. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,243
    Rep Power
    967
    I should expand that by saying you can't call it directly within your CFML code. Your only other real option would be to perform an HTTP call to a PHP file that would do something and return a result. See the documentation on CFHTTP.
  6. #4
  7. Put a potato on it!
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2008
    Location
    Maryland
    Posts
    304
    Rep Power
    970
    This is the second thread I've seen asking how to call PHP from Coldfusion, why do you want/need to do this, ssivasagar? I'm curious as to what the reasoning would be.
    "Those who can make you believe absurdities can make you commit atrocities."

IMN logo majestic logo threadwatch logo seochat tools logo