<?php
$stringa = "\\\\10.51.12.36\\tmp\\16222.txt";
$stringa = str_replace("\\", "/", $stringa);
echo($stringa);
?>