yay, thank you, it works now. btw, if anyone does this you need to do this on server side: chmod a+w [filename]
Final Code Used:
$content = file($filepath);
$content[27] .= "blah";
$fp = fopen($filepath, "w");
for($i=0; $i<count($content); $i++)
{
fwrite($fp, $content[$i]);
}
fclose($fp);
Thanks once again for your time and help 🙂