Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Stripping ALL images from a HTML File
Old 04-21-2006, 06:59 AM Stripping ALL images from a HTML File
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
Hi All

How do I remove all the <img tages from a text file using a php script

Im assuming that preg_replace is my function bu t am unsure how to define


cheers
__________________

Please login or register to view this content. Registration is FREE

Last edited by numbenator; 04-21-2006 at 07:59 AM..
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 04-22-2006, 04:04 PM Re: Stripping ALL images from a HTML File
Novice Talker

Posts: 6
Trades: 0
Maybe something like this:

preg_replace("'<IMG>'", "''", $html_body);


But I'm just guessing, really.
dougp25 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Stripping ALL images from a HTML File
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.75256 seconds with 12 queries