How do I use php code from a different domain?

Discussion in 'Programming' started by sawanbatahan, Apr 27, 2010.

  1. #1
    Here's what I'm trying to do: I have a php page I created on one domain, that stores information in a database. Next, I have another web page (This page is html NOT php) on a Different domain that I call this php page using Javascript, and would like to return a variable from the php page. How is this possible? I know it is, so don't say that it isn't! (10 points for the person that finally answers this question!)
     
    sawanbatahan, Apr 27, 2010 IP
  2. vinoth.t

    vinoth.t Peon

    Messages:
    156
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't know why you are calling from html to php.
    Use Ajax in the HTMl page to call PHP page.....
     
    vinoth.t, Apr 28, 2010 IP