Sublime directory Surf the web anonymous Pagerank Monitor


cross site access

Mind_nl
Fri 3 March 2006, 08:21 pm GMT +0100
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?

Nikolas
Sat 4 March 2006, 10:21 am GMT +0100
Is those domains on the same web server?

Mind_nl
Sat 4 March 2006, 12:43 pm GMT +0100
yes, they are different accounts on one server

Nikolas
Sat 4 March 2006, 12:47 pm GMT +0100
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.

Meth0d
Tue 7 March 2006, 04:09 am GMT +0100
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

Mind_nl
Tue 7 March 2006, 09:14 am GMT +0100
I'll do some testing, I'll probably look into CSS for this

Nikolas
Tue 7 March 2006, 09:18 am GMT +0100
CSS?

I can't get your point here.

Meth0d : There must be appropriate permissions to do that.

Mind_nl
Tue 7 March 2006, 11:32 am GMT +0100
eh I mean RSS sorry...

Nikolas
Tue 7 March 2006, 11:39 am GMT +0100
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.

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional