# PHP flash questions

**URL:** <https://forum.kirupa.com/t/php-flash-questions/96860>\
**Category:** Uncategorized\
**Created:** [December 14, 2003, 7:29pm UTC](https://forum.kirupa.com/t/php-flash-questions/96860 "2003-12-14T19:29:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pvasoldier](https://avatars.discourse-cdn.com/v4/letter/p/e19adc/32.png) [@Pvasoldier](https://forum.kirupa.com/u/Pvasoldier)\
**Post date:** [December 14, 2003, 7:29pm UTC](https://forum.kirupa.com/t/php-flash-questions/96860/1 "2003-12-14T19:29:35Z")

</div>

HI,

Im looking for a PHP script for a auto archiving news updater. I want all the script to appear in Flash.

How would I go about doing this?  
Where can i find a good script for this?  
Would MySQl or a flat file be best? Id prefer a flat file?

Any help would be much appreciated as Im totally lost!

thanks  
mk

---

<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:** [December 14, 2003, 8:59pm UTC](https://forum.kirupa.com/t/php-flash-questions/96860/2 "2003-12-14T20:59:09Z")

</div>

Well there are two main components to this problem 1. Getting Php to read/write to a flat file (or db). 2. Getting flash to read it.  
The first will be the harder of the two. A quick search in the server side section or on google is sure to get some hits.  
The second, is easier, You just have to get your php to output in a way that flash will be able to read it. And once in flash get flash to read it. You will need to look up LoadVars() to do that.  
Nothing too difficult but like I said you’ll have a harder time getting the php part working.

---

<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:** [December 14, 2003, 9:01pm UTC](https://forum.kirupa.com/t/php-flash-questions/96860/3 "2003-12-14T21:01:30Z")

</div>

fopen - opens a file on a server  
[http://www.php.net/manual/en/function.fopen.php](http://www.php.net/manual/en/function.fopen.php)

fread - reads it  
[http://www.php.net/manual/en/function.fread.php](http://www.php.net/manual/en/function.fread.php)

fwrite - writes to it.  
[http://www.php.net/manual/en/function.fwrite.php](http://www.php.net/manual/en/function.fwrite.php)

These should get you started in the right direction, now its just a matter of putting it all together.

Good luck

---

<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:** [December 14, 2003, 9:03pm UTC](https://forum.kirupa.com/t/php-flash-questions/96860/4 "2003-12-14T21:03:10Z")

</div>

thankies muchly
