All pastes #288650 Raw Edit

Untitled

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

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