# Generate dummy files

**URL:** <https://forum.kirupa.com/t/generate-dummy-files/268700>\
**Category:** programming\
**Created:** [August 17, 2008, 4:47pm UTC](https://forum.kirupa.com/t/generate-dummy-files/268700 "2008-08-17T16:47:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mofle](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@mofle](https://forum.kirupa.com/u/mofle)\
**Post date:** [August 17, 2008, 4:47pm UTC](https://forum.kirupa.com/t/generate-dummy-files/268700/1 "2008-08-17T16:47:19Z")

</div>

I’m trying to create a dummy file generator in PHP, but with no luck. I need the generated files to have some kind of scrambled content, and I need to be able to set the size of the generated file, and the extension. I think it has something to do with the fwrite(), but I’m a PHP noob.

I would really appreciate some help on this 😉
