<p>Hopefully a nice simple one.</p>

<p>I've got a php3 website that I want to run on php 5.2</p>

<p>To start with I'd just like to have every reference to the current "index.php3" _within_each_file_ (recursively) changed to "index.php" and then move on to worrying about globals etc.</p>

<p>K. Go!</p>

<p>:) </p>

<p>Update: Thanks a lot! I realise that my question missed the fact that the references are in each file of a website and I wanted to do it recursively in all files/folders.</p>

```
sed -i 's/php3/php/g' *
```
Assuming you are using a unix-like operating system.