10, January 2009

cross site access - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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

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



« on: Mar 03, 2006, 09: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: 8363
43165 credits
Members referred : 3



« Reply #1 on: Mar 04, 2006, 11:21:05 AM »

Is those domains on the same web server?

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

Last blog : Monetizing Old Posts
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #2 on: Mar 04, 2006, 01: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: 8363
43165 credits
Members referred : 3



« Reply #3 on: Mar 04, 2006, 01: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 Visit through proxy or twitter Visit through proxy

Last blog : Monetizing Old Posts
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #4 on: Mar 07, 2006, 05: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

Visit through proxy Visit through proxy Visit through proxy

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, 10: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: 8363
43165 credits
Members referred : 3



« Reply #6 on: Mar 07, 2006, 10: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 Visit through proxy or twitter Visit through proxy

Last blog : Monetizing Old Posts
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #7 on: Mar 07, 2006, 12:32:34 PM »

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: 8363
43165 credits
Members referred : 3



« Reply #8 on: Mar 07, 2006, 12:39:10 PM »

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 Visit through proxy or twitter Visit through proxy

Last blog : Monetizing Old Posts
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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Jan 10, 2009, 02:28:44 AM





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!


Forum Statistics
Total Posts: 38.668
Total Topics: 7.774
Total Members: 4.665
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: mosesbradford

28 Guests, 5 Users online :

15 users online today:



Readers

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