Affiliate Programs
 
Search affiliate programs for: 
Affiliate Categories
» Affiliate Networks
» Ad Networks
» 2 Tier Programs
» Pay Per Sale
» Pay Per Lead
» Residual Income
» Datafeeds
» Multi Tier Programs
» Business Opps
» Other Programs

Newsletter
Get newly added affiliate programs by email. Enter your email here:
Article Categories
» Affiliate Marketing
» Business
» Ecommerce
» Hosting
» Marketing
» Sales
» Web Designing
» Webmasters
» SEO & Promotion
» Working At Home
» Other Articles
» Affiliate Glossary


Go Back   AffiliateSeeking Forum > Website Creation, Design & Maintenance > Programming

Programming Get help with creating your scripts/software or help others. Discuss anything relating to programming. Includes PHP, Perl, C++, ColdFusion, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2011, 10:44 AM
danieljames123 danieljames123 is offline
Member
 
Join Date: May 2011
Posts: 70
danieljames123 is on a distinguished road
Default How do I use php code from a different domain?

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!)
__________________
php web development
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-09-2011, 11:49 AM
samstephan9 samstephan9 is offline
Member
 
Join Date: May 2011
Posts: 33
samstephan9 is on a distinguished road
Send a message via Yahoo to samstephan9
I think you can do it through Php smarty framework
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-10-2011, 10:39 AM
danieljames123 danieljames123 is offline
Member
 
Join Date: May 2011
Posts: 70
danieljames123 is on a distinguished road
But some one told me that
" Use AJAX and an echo() command in the PHP to return a value."
__________________
php web development
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-09-2011, 10:44 AM
malinky malinky is offline
Junior Member
 
Join Date: Sep 2011
Posts: 16
malinky is on a distinguished road
Not sure how that would be possible on different domains
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-22-2011, 01:25 PM
stevemack stevemack is offline
Member
 
Join Date: Aug 2010
Posts: 59
stevemack is on a distinguished road
as above mate said, you can use an echo() command that returns a value...!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-22-2011, 04:15 PM
shan158 shan158 is offline
Member
 
Join Date: Aug 2011
Posts: 86
shan158 is on a distinguished road
I am not really sure what you want to do. If the page on the second domain prints out the variable you want, then you can request that page using a function like file_get_contents().
However, you can't execute the PHP code from another domain on your domain. There isn't really a need to use Javascript unless I've mistaken what you're trying to do.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:27 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
© 2004-2011 AffiliateSeeking. All rights reserved.