# \[PHP\] search db or files?

**URL:** https://forum.kirupa.com/t/php-search-db-or-files/101063
**Category:** Uncategorized
**Created:** [February 5, 2004, 3:02pm UTC](https://forum.kirupa.com/t/php-search-db-or-files/101063 "2004-02-05T15:02:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![koorb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/koorb/32/424_2.png) [@koorb](https://forum.kirupa.com/u/koorb)
#### Post date: [February 5, 2004, 3:02pm UTC](https://forum.kirupa.com/t/php-search-db-or-files/101063/1 "2004-02-05T15:02:01Z")

</div>

So im wondering, for my next project I was going to use XML files to store the data, but I want the site to be able to search what would be in the \<content\> tag. Would it be wiser to use a database rather than XML, which would envolve opening the xml file, parsing it then working out if the `needle` is in the content?
