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? Link to comment https://forums.phpfreaks.com/topic/58634-small-question/ Share on other sites More sharing options...
teng84 Posted July 5, 2007 Share Posted July 5, 2007 y? and explain a little more Link to comment https://forums.phpfreaks.com/topic/58634-small-question/#findComment-290864 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. Link to comment https://forums.phpfreaks.com/topic/58634-small-question/#findComment-290871 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.