This is a discussion on replacing a html tag with text within the PHP Language forums, part of the PHP Programming Forums category; I need to change a html-tag into a call to a script. Tag is like this: <img src=&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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("someattach.php?s=3421543&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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|