RE: [PHP] String with front slashes.....
| From: | Jay Blanchard | Date: | Tue, 19 Jul 2005 16:32:52 +0000 |
| Subject: | RE: [PHP] String with front slashes..... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-218968@lists.php.net to get a copy of this message | ||
[snip]
I'd say it would be best to keep that slash out of the filename. Do a
regex on the string before doing anything else....
preg_replace ( "/\//", "-", $string );
[/snip]
That is what I ultimately told them, "Don't do that." Of course they
looked at me like I was a space alien (which I am today, but that's not
important now). I asked if they wanted to know the technical bits to
which they all vigorously shook their heads. But I will check the
strings and *ahem* 'fix' them just in case.
BTW, my daughter got her learner's permit today!