Question: ```
file * fp = fopen()
file * fd = ????

```

I want to use `*fd` to write file which `*fp` opened before.

How can I do it?

Add some, the key of this question is use another pointer to do it. See, \*fd is the different pointer. Wish i made this clear.

Answer: 
`htmlentities()` is what you're looking for:

<http://uk3.php.net/manual/en/function.htmlentities.php>
You are probably looking for [`htmlentities()`](http://fr.php.net/manual/en/function.htmlentities.php)