webstar Posted July 5, 2007 Share Posted July 5, 2007 I'm not sure I am doing this right. $removedata = ("THIS IS A WARNING THAT SEVERE THUNDERSTORMS ARE IMMINENT OR OCCURRING IN THESE REGIONS. REMEMBER SOME SEVERE THUNDERSTORMS PRODUCE TORNADOES..LISTEN FOR UPDATED WARNINGS. EMERGENCY MANAGEMENT ONTARIO RECOMMENDS TAKING COVER IMMEDIATELY WHEN THREATENING WEATHER APPROACHES."); $replacedata =""; str_replace($removedata, $replacedata, $pagedata); My PHP script reads the page, saves it to a txt file and emails it off. I need it to remove the part above before saving and emailing. I will be adding some other lines that need to be removed also. Am I doing it right? Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 5, 2007 Share Posted July 5, 2007 y? and explain a little more Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 5, 2007 Share Posted July 5, 2007 Try removing the parenthesis from the $removedata variable but otherwise than that it appears to be right. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.