replacing a html tag with text

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=&...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-30-2003
J.D. Schuitemaker
 
Posts: n/a
Default 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("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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:15 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0