View unanswered posts | View active topics It is currently 09 Sep 2010 8:13 am



Post new topic Reply to topic  [ 7 posts ] 
How do I use php code from a different domain? 
Author Message

Joined: 09 Feb 2010 3:17 pm
Posts: 3
Post How do I use php code from a different domain?
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
Profile
Premium Member

Joined: 23 Jan 2010 2:29 pm
Posts: 75
Post 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
Profile
Site Admin
User avatar

Joined: 28 Sep 2009 3:07 pm
Posts: 345
Location: Malaysia
Post 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.

_________________
ZENVERSE - Web Design and Development Blog
Wordpress Theme Demo Bar Plugin - All-in-one Theme Preview/Demo Solution
MonoShade Premium Wordpress Theme - from $15
Premium Wordpress Themes

Have a nice day and Enjoy your stay!


17 Feb 2010 11:32 am
Profile WWW
User avatar

Joined: 22 Feb 2010 8:44 am
Posts: 3
Post 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
Profile

Joined: 24 May 2010 3:50 pm
Posts: 2
Post Re: How do I use php code from a different domain?
thank you for information!


24 May 2010 4:05 pm
Profile

Joined: 29 Jul 2010 10:52 pm
Posts: 4
Post 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>

_________________
False Nails


29 Jul 2010 10:58 pm
Profile

Joined: 30 Aug 2010 1:16 pm
Posts: 9
Post 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...


30 Aug 2010 4:33 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


Who is online

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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.