By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,620 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

PHP page from several servers

P: n/a
I have a PHP web page hosted by a server I do not control. I would like
to add some more advanced functionality, specifically using XML-RPC,
that is not supported by this server. I can host this extra content on
a web server I do control. I don't want to migrate the whole site,
because my server is an experimental box and may be subject to
downtime; in this case, I don't mind losing the extra content, but I
want the main page to stay in place.

My question is about the best way to embed pages from an external
server. I guess I can use fopen (or similar) to display the page
itself, but I also need the external server to respond to get and post
variables. Could I write a wrapping page to perform this functionality?

Any other suggestions?

Peter

Jun 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

th*******@my-deja.com wrote:
I have a PHP web page hosted by a server I do not control. I would like
to add some more advanced functionality, specifically using XML-RPC,
that is not supported by this server. I can host this extra content on
a web server I do control. I don't want to migrate the whole site,
because my server is an experimental box and may be subject to
downtime; in this case, I don't mind losing the extra content, but I
want the main page to stay in place.

My question is about the best way to embed pages from an external
server. I guess I can use fopen (or similar) to display the page
itself, but I also need the external server to respond to get and post
variables. Could I write a wrapping page to perform this functionality?

Any other suggestions?

Peter


I would probably do one of the following:

Use an iframe. Its just so easy, but may not work for what you want.
Use mod_rewrite to transparently rewrite the request, again, maybe not
what you want.
Remote include the file (if supported). Not sure if this propagates
get, post, cookies, etc to the included page.
Use cURL to pass the POST data.

Constantly complain for the host to upgrade and include the xml-rpc
support. You might be able to convince them if you can load it as an
extension to php instead of a complete recompile

Jun 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.