I'm submitting though a form with content like this:
This is a test \ or something
Which ends up coming through POST as
This is a test or something
Notice the missing backslash. I really need the contents with the backslash maintained. Any help would be awesome.
EDIT:
Basically I'm just writing this out to a file:
<?php
frwite($file, $_POST['content']);
?>
I'm not running stripslashes() against it or any other transformations
It works fine on a server with magic_quotes_gpc enabled, but this application may float between servers that support and some that don't.
Basically I'm looking for a way to make this work regardless of magic_quotes_gpc