All pastes #288637 Raw Edit

Miscellany

public text v1 · immutable
#288637 ·published 2006-12-22 13:21 UTC
rendered paste body
   $OldContent = file_get_contents("$filePath");
   $NewContent = str_replace("/", "-", $OldContent);

   $NewFile = file_put_contents($filePath,$NewContent);