# Communicating to cgi on a different domain/ server

**URL:** <https://forum.kirupa.com/t/communicating-to-cgi-on-a-different-domain-server/116196>\
**Category:** Uncategorized\
**Created:** [July 15, 2004, 1:15pm UTC](https://forum.kirupa.com/t/communicating-to-cgi-on-a-different-domain-server/116196 "2004-07-15T13:15:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![winstun](https://avatars.discourse-cdn.com/v4/letter/w/a183cd/32.png) [@winstun](https://forum.kirupa.com/u/winstun)\
**Post date:** [July 15, 2004, 1:15pm UTC](https://forum.kirupa.com/t/communicating-to-cgi-on-a-different-domain-server/116196/1 "2004-07-15T13:15:42Z")

</div>

G’day all!

I’ve never attempted this before and would appreciate some advice on connecting to server-side scripts at a different domain.

For example, on one domain would be the main site with all the .swf’s, but the database containing the relative information is on a different domain and the two need to communicate with each other.

Would I use the LocalConnection object or if possible, could someone post an example to connect to a .php file on a different server than the .swf that is calling it.

The main issue why I’m asking is the main site server is nt with asp and I need to call a php file to connect to a database whereby both are on a \*nix server.

Any assistance would be helpful, thanks.
