note 42745 added to function.stripslashes

From: Date: Thu, 27 May 2004 17:26:34 +0000
Subject: note 42745 added to function.stripslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-70200@lists.php.net to get a copy of this message
Hi, The function stripslashes don't work very well with windows path. There's a function that strip any double slashes to alway display clean path. //By Frederic Fortier function clean_path($ch) { do { $pos = strpos($ch, chr(92) . chr(92)); if ($pos != false) { $ch = substr_replace($ch, chr(92), $pos, 2); } } while ($pos != false); return $ch; } ---- Manual Page -- http://www.php.net/manual/en/function.stripslashes.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42745 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42745&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42745&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70200) next »