Jump to content

My 1st post here! I am hopeful. Need help with file_get_contents and replacing


EduardoEduardo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.