Hi.... I have a php page I created on one domain, that stores information in a database. Next, I have another web page 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!
_________________ r4 revolution
12 Feb 2010 5:02 pm
sp@rky13
Premium Member
Joined: 23 Jan 2010 2:29 pm Posts: 75
Re: How do I use php code from a different domain?
Wouldn't MYSQL be better? You may need to give a few more details though
12 Feb 2010 7:53 pm
zenverse
Site Admin
Joined: 28 Sep 2009 3:07 pm Posts: 345 Location: Malaysia
Re: How do I use php code from a different domain?
Since you load the php page using javascript. You need to echo it (output it) in the php page so that the javascript can read them. Sorry if I misunderstood you.
Re: How do I use php code from a different domain?
do both site have wordpress 2.9.2, Because I seen a article yesterday about plugin in DB stuff from one site to another.. etc... I will try to find it again...
Q
_________________ My 2 cents might sux , but they are mine!!!
22 Feb 2010 8:55 am
McKenny
Joined: 24 May 2010 3:50 pm Posts: 2
Re: How do I use php code from a different domain?
thank you for information!
24 May 2010 4:05 pm
bradhodgy
Joined: 29 Jul 2010 10:52 pm Posts: 4
Re: How do I use php code from a different domain?
You can try this to use php code from a different domain It looks like this is what you need (sample for HTML page): <script type="text/javascript" src="http://www.yourPHPdomain.com/PHPpage.php"></script>
Re: How do I use php code from a different domain?
Hi,
do both site have wordpress 2.9.2, Because I seen a article yesterday about plugin in DB stuff from one site to another.. etc... I will try to find it again...
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum