# Writing a file from php to another domain

**URL:** <https://forum.kirupa.com/t/writing-a-file-from-php-to-another-domain/187972>\
**Category:** Uncategorized\
**Created:** [May 3, 2006, 2:48pm UTC](https://forum.kirupa.com/t/writing-a-file-from-php-to-another-domain/187972 "2006-05-03T14:48:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skjc](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@skjc](https://forum.kirupa.com/u/skjc)\
**Post date:** [May 3, 2006, 2:48pm UTC](https://forum.kirupa.com/t/writing-a-file-from-php-to-another-domain/187972/1 "2006-05-03T14:48:57Z")

</div>

the swf is on one server and the php script on another with a crossdomain policy in the root of the php server. i use sendAndLoad and it works fine in that i can write a file and get a response.

the problem i have is that the file is written locally to the php server, if i put in a path name (which is the calling server where the swf runs) it does not work (i did not expect it to work).

i know i have to do some extra scripting in php to get it to write to the path/filename.

i have searched on here and read up on it but cant seem to find it.

any help would be great

thx
