14, February 2012

cross site access - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  Databases  >  MySQL
Topic: cross site access
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: cross site access  (Read 2645 times)
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« on: Mar 03, 2006, 08:21:06 pm »

I have several websites (all hosted on the same server thru a reselling account) how would I access MySQL data under domain-a from a php script running on domain-b?


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5779
46271 credits
Members referred : 3



« Reply #1 on: Mar 04, 2006, 10:21:05 am »

Is those domains on the same web server?

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #2 on: Mar 04, 2006, 12:43:42 pm »

yes, they are different accounts on one server


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5779
46271 credits
Members referred : 3



« Reply #3 on: Mar 04, 2006, 12:47:21 pm »

You can do this with multiple ways.

1) SOAP, but I can't help you much here as I haven't made any SOAP service ever,

2) Using an http to xml script (a webpage that will create XML feeds of the data that you want to syndicate with your other sites)

3) Includes. (include a page from the other site using the real path, eg. /var/www/.....)

4) Connect to the database of the other site and retrieve the data you want, but this could cause a problem if you change the passwords.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #4 on: Mar 07, 2006, 04:09:50 am »

4) Connect to the database of the other site and retrieve the data you want, but this could cause a problem if you change the passwords.
i have found in my experience that this method never works for me


Last blog : phpHaze 1.59.1 in Development
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #5 on: Mar 07, 2006, 09:14:43 am »

I'll do some testing, I'll probably look into CSS for this


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5779
46271 credits
Members referred : 3



« Reply #6 on: Mar 07, 2006, 09:18:40 am »

CSS?

I can't get your point here.

Meth0d : There must be appropriate permissions to do that.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #7 on: Mar 07, 2006, 11:32:34 am »

eh I mean RSS sorry...


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5779
46271 credits
Members referred : 3



« Reply #8 on: Mar 07, 2006, 11:39:10 am »

Oh. RSS is allways a good solution, but sometimes is not neccessery, and in this situation propably they are not, as you want to syndicate two or more sites that are into the same server.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=1637
Tags : php css mysql soap databases Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  Databases  >  MySQL
Topic: cross site access
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 14, 2012, 02:06:45 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.