Im trying to use file_get_contents to get contents of a file and delete a certain part of a line in that file.
Is the following anywhere near what I want to achieve?
$page = file_get_contents('myPage.php?id='.$_GET['id']);
$file = 'temp/form_'.$_GET['id'].'.html';
$change = file_get_contents('myPage.php?id='.$_GET['id']);
$change = str_replace("/Elements/", "", $change);
file_put_contents($page, $file);
many thanks
Rifki