EduardoEduardo Posted February 4, 2011 Share Posted February 4, 2011 I am looking to use file_get_contents to get a php file and replace each link ID with the user ID so when they click the link it will be their user ID to unsubscribe. $html = eval('?'.'>'.file_get_contents("$html",1).'<'.'?'); $html = preg_replace('Content_To_Replace', "Content_Replacement", $html); //// this is not working I am using the "eval" function to make the PHP code work. Not sure what this does but it works. It's link 2 that I need help with. Thanks for your speedy reply on my first post here. =) Link to comment https://forums.phpfreaks.com/topic/226722-my-1st-post-here-i-am-hopeful-need-help-with-file_get_contents-and-replacing/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.