replacing a html tag with text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J.D. Schuitemaker

    replacing a html tag with text

    I need to change a html-tag into a call to a script.

    Tag is like this:
    <img src="someattach .php?s=3421543& id=20103" border="no">

    Has to be changed to:
    <?php
    include("someat tach.php?s=3421 543&id=20103")
    ?>

    I am thinking about preg_replace for it, but I have never used this function.

    All hints, tips or solutions are welcome.

    Jan-Dirk Schuitemaker
Working...