# I got a weird one

**URL:** https://forum.kirupa.com/t/i-got-a-weird-one/20069
**Category:** Uncategorized
**Created:** [May 4, 2003, 9:41pm UTC](https://forum.kirupa.com/t/i-got-a-weird-one/20069 "2003-05-04T21:41:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![eyezberg](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@eyezberg](https://forum.kirupa.com/u/eyezberg)
#### Post date: [May 4, 2003, 9:41pm UTC](https://forum.kirupa.com/t/i-got-a-weird-one/20069/1 "2003-05-04T21:41:57Z")

</div>

ok here goes:

```php
 <?php
$filename = "events.xml";
$fp = fopen( $filename,"w");
fwrite ( $fp, "$HTTP_RAW_POST_DATA" );
fclose( $fp );
?>

```

this i call from my swf, the xml is chmoded to be written to,  
everything works ok when i test locally, but nothing gets written online!?  
Use $Post stuff instead of the raw\_data?  
or…?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 4, 2003, 10:09pm UTC](https://forum.kirupa.com/t/i-got-a-weird-one/20069/2 "2003-05-04T22:09:01Z")

</div>

why do you have quotes around the $HTTP\_R\_P\_D ? have you tried it without those? I doubt that is a problem, but I don’t see anything wrong with the script otherwise… $POST might work… I honestly don’t see anything wrong… ☹
