Hi Shawna
Look up preg_replace();
Assuming $file is the contents of your file -
$file = preg_replace("/<img.*?>/i", "", $file);
James.
<[EMAIL PROTECTED]> wrote in message
BB6D932A42D6D211B4AC0090274EBB1D2EEF63@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1D2EEF63@GLOBAL1...
> I've created a "printer-friendly" version of a page (PHP/MySQL) and want
to
> have just the <img> tags automatically removed. I thought about using
> strip_tags() but I'm not able to predict what html tags to include as the
> exceptions so that they would not be removed too. How can I do this?
Thank
> you!
>
> - Shawna
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]