So what you want to do is to have your script receive user input and add 25 to whatever value is in line number 4 of a specific file?
If this is the case, then this should work:
[tt]$lines = file("<filename>"

; /* Read <filename> into an array, each line having it's own index */
$lines[4] = rtrim($lines[4]) + 25; /* Remove trailing newlines and add 25 to line 4 */
if (!$fp = fopen("<filename>", "w"

) /* Open <filename> for writing to write back the data */
die("Unable to open <filename>"

;
foreach ($lines as $line) /* Loop over each line */
{
fwrite($fp, $line); /* Write the line to the file */
}
fclose($fp);[/tt] //Daniel