I'm trying to remove the backslashes to open the URL of the image, I found a way to override, but part of my string was lost:
function formatURL( $url )
{
echo $url."<br />";
$url = str_replace('\', '/', $url);
echo $url."<br />";
}
echo "http://10.0.0.1/fotoou/aplic\1893171_1.jpg<br />";
$url = formatURL("http://10.0.0.1/fotoou/aplic\1893171_1.jpg");
echo $url;
The strange thing is that my return is:
http://10.0.0.1/fotoou/aplic93171_1.jpg
http://10.0.0.1/fotoou/aplic93171_1.jpg
http://10.0.0.1/fotoou/aplic/9/8/1893171_1.jpg
Part of the missing string:
\